/vending-machine

๐ŸŽฐ Vending Machine frontend app build with React, Material UI, Redux and React Router - Abacum React Course Summer 2023

Primary LanguageTypeScript

๐ŸŽฐ Vending Machine

This project replicates the front end of a vending machine using React, Material UI, Redux and React Router. It also includes a mocked BE build with json-server.

๐Ÿ› Architecture

/src
โ”œโ”€โ”€ /components             # React FC components
โ”œโ”€โ”€ /mocks                  # A mocked BE powered by json-server
โ”œโ”€โ”€ /pages                  # Page entrypoints for the app
โ”œโ”€โ”€ /redux                  # Redux store sclices
โ”œโ”€โ”€ /App.*                  # App files
โ”œโ”€โ”€ /api.ts                 # Handles all the interactions with BE
โ”œโ”€โ”€ /store.tsx              # Redux store
โ””โ”€โ”€ /types.tsx              # Interfaces definition

๐Ÿ“ธ Screens

Login screen

Screenshot 2023-07-26 at 14 05 06

Products screen

Screenshot 2023-07-26 at 14 07 18

๐Ÿ“œ Available Scripts

๐Ÿ›ซ npm start

To start the application.

๐Ÿงช npm test

To launch the test runner in the interactive watch mode.

๐Ÿฅธ node src/mocks/server.js

To start a mocked backend json-server for testing purposes.