- Tech Stack used - MERN
- nodeapi folder has details of backend API used
- nodeapi/routes folder contians files having endpoints of the API
- Feel free to reuse this API
-
Clone the Git Repo
-
To Launch Frontend :-
- Inside react-front folder, run
npm install
- Create a
.env
file and setREACT_APP_API_URL=http://localhost:8080
- Run
npm start
- Inside react-front folder, run
-
To Launch Backend :-
-
Inside nodeapi folder, run
npm install
-
Create a .env file and set these variables :-
a)
MONGO_URI
as provided by MongoDB Atlas
b)JWT_SECRET
a random string for generating JWT token
c)PORT=8080
i.e. the Frontend server's port -
Run
nodemon app.js
-