Skip to content

viduni94/photo-selector-fe

Repository files navigation

React application for a Photo Selector

Client application which uses React Hooks, Redux, JSX transform, etc to implement a photo selector application.

Node >= 10.16 and npm >= 5.6 are required on your environment, as specified by create-react-app.

 

How to use

Clone the server

  1. git clone [email protected]:viduni94/photo-selector-be.git <YOUR_PROJECT_NAME>
  2. cd <YOUR_PROJECT_NAME>
  3. npm install
  4. npm start

Clone the client

  1. git clone [email protected]:viduni94/photo-selector-fe.git <YOUR_PROJECT_NAME>
  2. cd <YOUR_PROJECT_NAME>
  3. yarn
  4. yarn start

 

Features

  • View uploaded photos (Retrieved from a JSON file)
  • Select 9 photos for a photo grid
  • Save photo grid
  • View photo grid
  • Update photo grid

Note: When you have an already saved photo grid, the application will load the photo grid on the initial load. If not, the application will load the photo selector

 

Screenshots

Photo Selector with no photo selection (initial load)

photo-selector

Photo Selector with photos selected for the grid - Edit Mode

photo-selector-with-selected-photos

Generated photo grid

photo-grid

 

Scripts

  • yarn start - Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.

  • yarn test - Launches the test runner in the interactive watch mode. See the section about running tests for more information.

  • yarn test:no-watch - Runs tests without watch mode. Is used for the pre-push git hook, and can be used with continuous integration.

  • yarn test:coverage - Runs tests without watch mode and outputs coverage reports to /coverage.

  • yarn build - Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.

  • yarn eject - Ejects the create-react-app configurations (webpack, Babel, ESLint, etc.) into your project as dependencies in package.json. Should be used if the provided configurations aren't working for you.

  • yarn lint - Runs eslint, stylelint and prettier checks, but does not fix any issues.

  • yarn lint:fix - Runs eslint, stylelint and prettier checks, and fixes possible issues. Some issues might still require manual fixing.

The following scripts are also included if the linters need to be used separately.

eslint, eslint:fix, stylelint, stylelint:fix, prettier, prettier:fix

 

License

This project is licensed under the MIT license, Copyright (c) 2021 Viduni Wickramarachchi. For more information check the LICENSE file.

About

React application for a Photo Selector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published