- set the mongodb uri on .env.development or .env
- you are free to change the dummy products or dummy users on the src/lib/dbFeeder.js
yarn
yarn dev
oryarn start
- POST: /api/login
- GET: /api/user
- POST: /api/purchase
- GET: /api/products
- GET: /api/receipts
NOTE: Backend will check if mongo collections were exist if not it will init the db with dummy data (users and products)
This project was bootstrapped with Create React App.
- set the backend endpoint here in /src/utils/constants.tsx
In the project directory, you can run:
and
Runs the app in the development mode.
Open
http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors
in the console.