A full-stack sample web application based on Node.js, Express.js & MongoDb, also PUG is used in frontend.
- Provide all below environmental variables based on your personal data:
- MONGODB_URI
- MONGODB_PASSWORD
- JWT_SECRET
- JWT_EXPIRE_IN
- JWT_COOKIE_EXPIRES_IN
- GMAIL_USERNAME
- GMAIL_PASSWORD
- GMAIL_HOST
- GMAIL_PORT
- EMAIL_FROM
- STRIPE_PUBLISHABLE_KEY
- STRIPE_SECRET_KEY
Please be noted variables' name are optional, and you can name them whatever you want, but be sure you use same names inside your project too.
- Use below command in terminal to run project in DEVELOPMENT Environment
npm run dev
- Use below command in terminal to run project in PRODUCTION Environment
node server.js
or
npm start
You can find a live example of website in below link: