- run nmp i in CLI
- rum npm start in CLI
- there are two APIs on BE
-
- GET: http://localhost:3000/products (for fetching products from JSON)
-
- POST: http://localhost:3000/api/purchase (for purchase products and add it to purchases. JSON file)
-
- GET: http://localhost:3000/product?name=shoe (for fetching products based on query param of name.) // currently this feature is not added in Front End, but this api can be checked from postman by passing req.query.name
Note: while running Frontend app, make sure, the this Backend Server is running.