Skip to content

It is a tours website for showing the information about all the tours of this company and making the clients able to book them.

License

Notifications You must be signed in to change notification settings

MoazHassan2022/Natours

Repository files navigation

NATOURS APP

alt text

Table of Contents

Deployed Website :

NOTE: Heroku is planning to prevent free servers soon, so maybe when you see this, the website will not be there anymore.

Built With :

Getting Started

This is a list of needed instructions to set up your project locally, to get a local copy up and running follow these instructions.

  1. Clone the repository.

  2. cd into backend folder and create a file named "config.env" and fill it with this fields with your information.


    NODE_ENV=development
    PORT=[PORT YOU WANT]
    DATABASE=[CONNECTION STRING OF YOUR DATABASE]
    USER=[DATABASE USER NAME]
    DATABASE_PASSWORD=[YOUR DATABASE PASSWORD]
    JWT_SECRET=[YOUR JWT SECRET STRING]
    JWT_EXPIRES_IN=[DATE example: 1d "for one day"]
    JWT_COOKIE_EXPIRES_IN=[Date example: 1 "for one day"]

  3. Follow this article to install node js and npm Install Node js and npm

    .
  4. npm i && npm start

Description

This website was implemented for studying the Complete Node Bootcamp by Jonas Shmedtmann Complete Node Bootcamp.
It is a tours website for showing the information about all the tours of this company and making the clients able to book them.
Each user has information like name, email, role(admin, lead guide, guide, or user), password and maybe a photo. He can update his information at any time, log in, and log out.
Each tour has name, duration, maximum group size, difficulty(hard, medium or easy), reviews, price, summary, description, cover image, images, start dates, start location, locations and guides.
This website is developed in Node js for the backend using MongoDB for the database & in Pug templates for the frontend (Server has an API and also renders the views, but the project target is the server API).

Documentation

You can look on the API documentation at API Documentation

Screenshots

  1. Log In with email and password.

  2. All Tours.

  3. A client can update his information, look at his bookings, and log out.

  4. Update password.

  5. Update password with incorrect password.

  6. Tour Page 1.

  7. Tour Page 2.

  8. Tour Page 3.

  9. Tour Page 4.

  10. Tour Page 5.

  11. Tour Page 6.

  12. Booking a tour with Stripe.

  13. My Tours after booking.

About

It is a tours website for showing the information about all the tours of this company and making the clients able to book them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published