Skip to content

A full-stack sample web application based on Node.js, Express.js & MongoDb

Notifications You must be signed in to change notification settings

ventuno-21/Node.js-Natour-2025.01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Natour

A full-stack sample web application based on Node.js, Express.js & MongoDb, also PUG is used in frontend.

How to run the project on your system

  1. Provide all below environmental variables based on your personal data:

Variables related to connect MongoDb Database

  • MONGODB_URI
  • MONGODB_PASSWORD

Variables related to JWT

  • JWT_SECRET
  • JWT_EXPIRE_IN
  • JWT_COOKIE_EXPIRES_IN

Variables related to use an Gmail account to send Emails to clients:

  • GMAIL_USERNAME
  • GMAIL_PASSWORD
  • GMAIL_HOST
  • GMAIL_PORT
  • EMAIL_FROM

Variables related to use STRIPE for payment processing:

  • 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.

  1. Use below command in terminal to run project in DEVELOPMENT Environment
npm run dev
  1. Use below command in terminal to run project in PRODUCTION Environment
node server.js

or

npm start

Deployment

You can find a live example of website in below link:

click to find out

About

A full-stack sample web application based on Node.js, Express.js & MongoDb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published