Skip to content

mhmadalaa/Natours

Repository files navigation

Natours

Tour booking REST API

Badges

NodeJS Express.js MongoDB JWT Git GitHub

About

This tour booking REST API provides endpoints for managing tour packages, bookings, customers, and tour guides. This API enables tour operators, travel agencies, and online booking platforms to offer tour packages and facilitate bookings efficiently.

Tools and Technologies

Installation

  • To install Natours, follow these steps:

    $ git clone <repo-link>
    $ cd <app-directory>
    $ npm install
  • Set up environment variables: To run this project, you will need to add the following environment variables to your .env file
    HOST=
    PORT=
    DATABASE=
    DATABASE_PASSWORD=
    JWT_SECRET= jwt secrete key
    JWT_EXPIRES_IN= jwt expired date
    JWT_COOKIE_EXPIRES_IN=
    EMAIL_USERNAME=
    EMAIL_PASSWORD=
    EMAIL_HOST=
    EMAIL_PORT=
    EMAIL_FROM=

  • Start the application:

    npm run start

Documentation

API documentation here 🔗