Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m7moudgadallah/tour-booking-app-using-express-mongodb
A full-stack application for booking tours that combines a RESTful API and server-side rendering using Node.js, Express, and MongoDB.
https://github.com/m7moudgadallah/tour-booking-app-using-express-mongodb
automated-testing expressjs jest mongodb mongoose nodejs postman pug restful-api server-side-rendering
Last synced: about 6 hours ago
JSON representation
A full-stack application for booking tours that combines a RESTful API and server-side rendering using Node.js, Express, and MongoDB.
- Host: GitHub
- URL: https://github.com/m7moudgadallah/tour-booking-app-using-express-mongodb
- Owner: m7moudGadallah
- License: mit
- Created: 2023-09-20T17:53:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-20T18:27:47.000Z (about 1 year ago)
- Last Synced: 2023-09-21T08:40:18.405Z (about 1 year ago)
- Topics: automated-testing, expressjs, jest, mongodb, mongoose, nodejs, postman, pug, restful-api, server-side-rendering
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tour Booking APP Using Express & MongoDB
A full-stack application for booking tours that combines a RESTful API and server-side rendering using Node.js, Express, and MongoDB.
## Table of content
- [Tour Booking APP Using Express & MongoDB](#tour-booking-app-using-express--mongodb)
- [Table of content](#table-of-content)
- [Introduction](#introduction)
- [key Features](#key-features)
- [Technologies](#technologies)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Testing](#testing)
- [Running Tests](#running-tests)
- [Test Coverage](#test-coverage)
- [Designs and Documentation](#designs-and-documentation)
- [License](#license)## Introduction
Welcome to the Tour Booking App! This project provides both a RESTful API for programmatic access and server-side rendering using Pug for a seamless user experience. It is built using Express.js, Node.js, and MongoDB as the database. This application for users who want to book tours, leave reviews, and interact with the platform, as well as administrators and lead tour guides who need specialized dashboards for management.
> π‘Note: This project is currently a work in progress.
**[β Top](#tour-booking-app-using-express--mongodb)**
## key Features
- **Authentication & Authorization:** Secure user authentication and authorization system.
- **Exploring Tours (client):** Users can browse and search for available tours.
- **Booking Tours (client):** Users can book tours they are interested in.
- **Rating and Reviewing Tours:** Clients can leave reviews and ratings for tours they've booked.
- **Payment for Booked Tours:** Integration with Stripe for secure payment processing.
- **Admin Dashboard:** A powerful admin dashboard for managing tours, bookings, reviews, and users.
- **Lead-Tour-Guide Dashboard:** Specialized dashboard for lead tour guides displaying their tours and relevant statistics.**[β Top](#tour-booking-app-using-express--mongodb)**
## Technologies
- Node.js
- Express.js
- MongoDB (Database)
- Mongoose (ODM)
- Pug (for server-side rendering)
- JWT (JSON Web Tokens)
- Stripe (for payments)
- Jest (for unit and integration testing)
- Supertest (for testing HTTP endpoints)**[β Top](#tour-booking-app-using-express--mongodb)**
## Getting Started
### Prerequisites
Before you begin, ensure you have met the following requirements:
- Node.js installed.
- MongoDB installed and running.
- Git installed (if you plan to clone the repository).**[β Top](#tour-booking-app-using-express--mongodb)**
### Installation
1. Clone the repository:
> git clone https://github.com/m7moudGadallah/Tour-Booking-App-using-express-mongoDB.git
2. Navigate to the project directory:
> cd app
3. Install the project dependencies:
> npm install
4. Rename `.env.env` to `.env` and set the actual values for your environment variables in the .env file.
5. Start the application in development mode:
> npm run start:dev
The application should now be accessible at `http://localhost:3000`.
6. To run the application in production mode, use:
> npm run start:prod
**[β Top](#tour-booking-app-using-express--mongodb)**
## Testing
We ensure the reliability of this application through unit and integration testing using `Jest` and `Supertest`.
### Running Tests
1. Ensure that you have installed all project dependencies, including development dependencies:
> npm install
2. Run the unit and integration tests:
> npm test### Test Coverage
We maintain a high level of code coverage to ensure that our application functions correctly and securely. You can view the test coverage report by running:
> npm run test:coverage
The coverage report will be available in the coverage directory.
**[β Top](#tour-booking-app-using-express--mongodb)**
## Designs and Documentation
Designs and documentation for this project can be found in the **_[docs](./docs/)_** directory.
**[β Top](#tour-booking-app-using-express--mongodb)**
## License
This project is licensed under the MIT License - see the **_[LICENSE](./LICENSE)_** file for details.
**[β Top](#tour-booking-app-using-express--mongodb)**