Skip to content
/ natours Public

This Repo contain my Natours project, Natours - a tour Booking web application that is Built using Node.js, Express.js, MongoDB, and Mongoose, it provides a seamless and interactive experience for users to discover and book their dream tours.

Notifications You must be signed in to change notification settings

Nowihy/natours

Repository files navigation

Natours

Node.js badge MongoDB badge Express badge

Natours is a tour booking web app that I created as part of the [Node.js course on Udemy by Jonas Schmedtmann](https://www.udemy.com/course/nodejs-express-mongodb-bootcamp/). The app uses Node.js, Express and MongoDB to create a RESTful API and a dynamic website. The app also implements authentication, authorization, security, payments and email features.

🚀 Getting Started

To run this project locally, you need to have Node.js and MongoDB installed on your machine.

Prerequisites

  • Node.js
  • MongoDB
  • NPM or Yarn
  • JavaScript

Installation

  1. Clone this repo to your local machine using git clone https://github.com/<your-username>/natours.git.
  2. Go to the project directory using cd natours.
  3. Install the dependencies using npm install or yarn install.
  4. Create a .env file in the root folder and add the following environment variables:

NODE_ENV=development PORT=3000 DATABASE=<your-mongodb-connection-string> DATABASE_PASSWORD=<your-mongodb-password> JWT_SECRET=<your-jwt-secret> JWT_EXPIRES_IN=90d JWT_COOKIE_EXPIRES_IN=100 EMAIL_USERNAME=<your-email-username> EMAIL_PASSWORD=<your-email-password> EMAIL_HOST=<your-email-host> EMAIL_PORT=<your-email-port> EMAIL_FROM=<your-email-address> STRIPE_SECRET_KEY=<your-stripe-secret-key>

Run the app using npm start or yarn start.
Open your browser and go to http://localhost:3000.

✨ Features

User registration and login with JWT authentication
Password reset with email verification
User roles and permissions
Searching for tours (Filtering & Sorting)
Tour creation, update and deletion
Tour image upload and processing
Tour ratings and reviews
Tour booking with Stripe integration
Booking confirmation and invoice email
Error handling and logging

🛠️ Technologies

Node.js
Express
MongoDB
Mongoose
Bcrypt
Jsonwebtoken
Validator
Stripe
Sendgrid
Nodemailer
Multer
Sharp
Morgan
Helmet
Xss

👤 Author

  • Nowihy- Initial development

👏 Acknowledgements

This project is based on the Node.js course on Udemy by Jonas Schmedtmann. Special thanks for his guidance and support during the learning process..

About

This Repo contain my Natours project, Natours - a tour Booking web application that is Built using Node.js, Express.js, MongoDB, and Mongoose, it provides a seamless and interactive experience for users to discover and book their dream tours.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published