- ReactJS - JS Library
- NodeJS - Backend Language
- MongoDB - NoSQL Database
- Mongoose - Connection Library Between MongoDB and NodeJS
- JWT - Authentication
- ExpressJS - NodeJS Framework
- TailwindCSS - CSS Framework
- React Router - Client And Server-side Routing
- Axios - HTTP Client
First install the required dependencies:
npm install
Then, run the development server in both backend and frontend folder:
npm run dev
The dotenv package is a helpful tool when working with sensitive data such as API keys, passwords, and other configuration variables that should not be hard-coded into your code. It allows you to load environment variables from a .env
file into Node.js process.env
object.
To use dotenv, create a .env
file in the root directory of backend folder and define your environment variables in it using the KEY=VALUE syntax. Required variables to be initialized given below:
PORT=3000
MONGO_URI=
JWT_SECRET=
JWT_EXPIRY=
Note: If app didn't work, try restarting backend server.