A basic shoe Ecommerce UI wih React Hooks.
node >= 12.0.0
- Clone this repo locally and install the required packages:
$ git clone https://github.com/librity/ignite_shoes.git
$ cd ignite_shoes
$ yarn install
- Start a json server (mock backend):
$ yarn server
- Start a dev server:
$ yarn start
- Open http://localhost:3000 on your web browser.
Run tests with jest:
$ yarn test
On the home screen, click on an item to add it to your cart.
Clicking on Meu Carrinho
will take you to the cart view,
where you can edit the amount of each item or remove it.
- https://github.com/typicode/json-server
- https://github.com/fkhadra/react-toastify
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/throw
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
- https://www.tutorialspoint.com/typescript/typescript_interfaces.htm
- https://apirequest.io/
- https://www.arungudelli.com/tutorial/javascript/how-to-check-if-an-object-is-empty-in-javascript-examples/
- https://stackoverflow.com/questions/4994201/is-object-empty
- https://stackoverflow.com/questions/4059147/check-if-a-variable-is-a-string-in-javascript
- https://stackoverflow.com/questions/40238144/safe-navigation-operator-or-and-null-property-paths