MONGODB_URI=mongodb+srv://<user>:<pass>@cluster0.ey9pqsg.mongodb.net/<db>?retryWrites=true&w=majority
JWT_SECRET=6a627a7fb025e2c5db643267523a1c801c1178bed30331a2606fe93f4dd9aa7b
SERVER_URL=http://localhost:5000
CP_SECRET=<create/replace secret>
PORT=<add port>
NODEMAILER_HOST=smtp.ethereal.email
NODEMAILER_PORT=<add nodemailer port>
NODEMAILER_USER=<add user>
NODEMAILER_PASSWORD=<add password>
- Replace `<user>`, `<pass>`, and `<db>` with your MongoDB credentials and database name
- Replace `JWT_SECRET` with a random string. You can generate a random 32 character string from the terminal by typing:
- node <enter>;
- then type
- require('crypto').randomBytes(32).toString('hex') <enter>`
- Replace `SERVER_URL` with your server URL
- CP_SECRET: Create a Cookie Parser secret and replace <> with your new secret
- PORT: Add your port replace <>
- NODEMAILER: Replace <> with actual Nodemailer data
- (Port, User, and Password)