Skip to content

jacquesconey/ecom-fullstack-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photobox Full Stack JS test

This test is designed for potential full stack developers to demonstrate their coding skills. It's intended to be done in less than 90 minutes, but don't hold back in showing your skills. We're mainly interested in seeing how you approach this problem and how far you'll get.

The test does not have any intentional bugs. So if you do find any, you can relay them back to us. Start by creating a fork, add your changes and send us a link back to your work.

Deliverable

Your task is to create part of a listing page for the products that you receive from an API. The data for the listing page can be accessed via /api/products (see. /api folder). Tip: Where are the decimal indicators for the prices! :)

Please return at minimum a component and a test using jest. Feel free to import any modules that you feel you require or make any changes you deem necesary.

This is what a single product card should look like:

listing page product card example

Behaviour of product cards at differen't breakpoints:

  • Mobile (320px > screen < 480px): one product card per row
  • Tablet (480px > screen < 768px): two product cards per row
  • Desktop (768 px > screen < inf): three product cards per row

The product cards should be contained within 1024px and be aligned in the centre.

If the user types in any other URL, it should return a basic 404 page. Keep it stateless, if possible. If you want to impress, change express to koa and use redux.

Main commands

# Install the dependencies
yarn install

# Run website in dev (hot reload) mode ( http://localhost:3000 )
yarn dev

# Run the unit tests
yarn test

Other useful commands

# Create a development build
yarn build:dev

# Create a production build
yarn build:prod

# Serve content from build folder
yarn serve

About

Photobox Full Stack JS Test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.6%
  • HTML 7.9%
  • CSS 0.5%