Table of Contents
Pangaea FE Coding Challenge For this challenge we'll be recreating the luminskin.com product page and cart using a GraphQL API. You can use any framework you feel comfortable with, we recommend ReactJS or Vue.js. You dont need to worry about a pixel-perfect recreation, the main thing we care about is functionality (but if it looks nice we won't hold that against your).
Should query from https://pangaea-interviews.now.sh/api/graphql, retrieve the products and display them in a grid. Feel free to use graphql client libraries such as Apollo Client Each item should display the image, title, price and a "Add to Cart" button. For screens wider than 768px, it should show grid of 3 items, for less than 768px wide it should show a grid of two wide. There is no need to implement the page navbar, or filter dropdown as shown in the screenshot .
When a user clicks "Add to Cart" on an item it should open the cart sidebar and add the item in. If the item already exists it should increment the quantity. Clicking the + or - buttons will increase or descrease the quantity, if the quantity is 1 and the "-" button is pressed it should remove the item. In the top left there is a currency select, doing so should requery the GraphQL api with a new currency and update the prices. It should sum the items in the cart and display them in the correct selected currency. Ignore anything related to subscriptions.
Push your code to a version control service such as github or gitlab and send a link to the shared repository to jordan@menskin.co
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
- Get to https://github.com/jeff-ofobrukweta/Take_Home_Test-from_Pangaea
- Clone the repo
git clone https://github.com/jeff-ofobrukweta/Take_Home_Test-from_Pangaea.git
- Install NPM packages
npm install
- Run unit test
npm run test:unit
- Run lint
npm run lint
- get the dist production build
npm run build
- Get to https://github.com/jeff-ofobrukweta/Take_Home_Test-from_Pangaea
- Clone the repo
git clone https://github.com/jeff-ofobrukweta/Take_Home_Test-from_Pangaea.git
- Install NPM packages
yarn install
- Run unit test
yarn run test:unit
- Run lint
yarn run lint
- get the dist production build
yarn run build
To Get the Flat run command below:
production build
npm run build
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Jefferson . Ofobrukweta . O - @https://www.linkedin.com/in/ofobrukweta-jeff-207506136/ - oghenerukevwejeff@gmail.com
Project Link: https://github.com/jeff-ofobrukweta/Take_Home_Test-from_Pangaea