Installation
- Open terminal of your choice and type
git clone https://github.com/mern-stack/mern.git <Your-Project-Name>
CD into the
<Your-Project-Name>/backend
directory and rename.env.example to .env
Enter
PORT
number to port of your choice, for examplePORT=5000
.This will be used for running server on the specified port
Enter a secure random string to
KEY=
in.env
You can get a secure key from Generate Random Key
It Is recommended to generate 256 bit Key
Now go to root of your project and run
npm run setup
in your terminal and we will set everything for you.