Skip to content

An awesome tour booking web app written in NodeJS, Express, MongoDB

License

Notifications You must be signed in to change notification settings

siAyush/Natours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natours

An awesome tour booking site built on top of NodeJS.

Deployed Version

Live demo: https://natours-jksu.onrender.com

Key Features

  • Authentication and Authorization
    • Signup, Login and logout
  • Tour
    • Manage booking, check tours map, check user's reviews and ratings
  • User profile
    • Update username, profile photo, email, and password
  • Credit card payment using Stripe

How To Use

Book a tour

  • Login or Signup to the site
  • Search for tours that you want to book
  • Book a tour
  • Proceed to the payment using Stripe
  • Enter the card details (Test Mode):
    - Card No. : 4242 4242 4242 4242
    - Expiry date: any
    - CVV: any
    
  • Finished!

Manage your booking

  • Check the tour you have booked in "Manage Booking" page in your user settings. You'll be automatically redirected to this page after you have completed the booking.

Update your profile

  • You can update your own username, profile photo, email and password.

API Usage

Before using the API, you need to set the variables in Postman depending on your environment (development or production). Simply add:

- {{URL}} with your hostname as value (e.g. http://127.0.0.1:3000 or http://www.example.com)
- {{password}} with your user password as value.

Check Natours API Documentation for more info.

API Features:

Deployment

The website is deployed using git on render.com. Below are the steps taken:

git init
git add -A
git commit -m "Commit message"
git push origin main

deploy on render > web service

Set environment variables to render:

go to dashboard > project > environment

Build With

Installation

You can fork the app or you can git-clone the app into your local machine. Once done that, please install all the dependencies by running

$ npm i
set your env variables
$ npm run watch
$ npm run dev (for development)
$ npm run prod (for production)
$ npm run debug (for debug)

About

An awesome tour booking web app written in NodeJS, Express, MongoDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published