-
Clone the repository to your local machine:
git clone https://github.com/harsh661/mern-auth.git
-
Change into project directory
cd mern-auth
-
Install dependencies
npm install
-
Rename .env-example to .env and add following content:
NODE_ENV=development PORT=5000 MONGODB_URI=your-mongodb-connection-string JWT_SECRET=your-secret-key
-
Start server:
npm run devStart