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.
- Node.js - JS runtime environment.
- Express - web framework.
- Mongoose - Object Data Modelling library.
- MongoDB Atlas - Cloud database service.
- JSON Web Token - Security token.
- Postman - API testing.
-
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
API documentation here 🔗