GithubHelp home page GithubHelp logo

flapi-ui's Introduction

Flapi-UI

A simple UI layer for a web application which hits the Flickr public API to retrieve photos. A Node backend is required for this project which can be found here.

You can test out a live demo version of the app here. Note: the first time you hit the backend it will take a few seconds. This is because it's hosted on Heroku and it needs some time for the dyno to fire up. Subsequent hits will be much faster.

Tech

It uses React, Apollo, GraphQL and Styled Components.

Eslint for linting, which runs on a pre-commit hook.

React Testing Library, Jest, Jest Styled Components for testing, which also runs pre-commit.

Installation

Clone this repo.

$ yarn install
$ yarn dev

For a production build:

$ yarn build

Todo

Lots to do still!...

Field Task
UI Disable Search when on individual Photo page as it's redundant.
UI Add filtering and addition search params to GraphQL query.
UI Fix the jump in image size on the individual Photo page.
UI Add logic to hit a photo directly with a url.
Errors Add Error Boundaries and better GraphQL error handling
Optimisation The bundle is a bit large around 500kb. Would implement gzip compression, and potentially code splitting.
Testing I have only provided an example style, unit and integration tests. Coverage is extremely thin.
Security Would add https for production.
Bugs Fix loading animation.

Considerations

Field Task
UI Potentially smaller thumbnail images to reduce blur.
UI Perhaps scrap the masonry thumbnail effect with uniform sizes.

flapi-ui's People

Contributors

ollyd avatar

Stargazers

Alain Gauthier Ndamwey avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.