Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mountain Cabin Booking App

This project is a MEAN stack booking application. It is a client-server web application where the Angular frontend communicates with the Node + Express backend, which in turn interacts with a MongoDB database.

The application allows users to create, view and manage bookings, with proper handling of data validation, authentication and server-side logic. There are three types of users: admin, home owner and guest, each with its own set of functionalities. The frontend provides a responsive UI, while the backend exposes RESTful APIs and handles all business logic.

Project Setup

The project consists of two separate parts and a db:

  • frontend/ - Angular application
  • backend/ - Node+Express application
  • database/ - JSON files to populate MongoDB

Before running the project, you need to:

  1. Install dependencies for both frontend and backend.
  2. Start MongoDB server.
  3. Import JSON files from the database/ folder to seed the database.

Database

Make sure MongoDB is running on your machine on port 27017. The database/ folder contains JSON files that can be used to populate the MongoDB database with initial data. You can import these files using MongoDB tools (e.g., mongoimport or MongoDB Compass) before running the application to seed the database.


Client side (Angular)

Navigate to the frontend directory and install dependencies with npm install.

This will generate the node_modules directory required to run the Angular application.

To start the frontend developement server, run:

npm start

or

ng serve

Access the frontend at http://localhost:4200

Server side (Node+Express)

Navigate to the backend directory and install dependencies with npm install.

This will generate the node_modules directory required to run the Node application.

Build the backend application:

npm run build

Start the backend server:

npm start

The server runs on http://localhost:4000 and communicates with MongoDB.

About

Mountain Cabin Booking App

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages