Hotel Booking System
This project is a hotel booking system built using Angular, Angular Material, and Tailwind CSS. It provides functionalities for users to search and filter hotels, create bookings, and manage their profiles. Admin users have additional privileges for managing users, hotels, and bookings.
Check out the React version here
Features
- User Authentication:
- User registration
- User login/logout
- Change password
- Hotel Booking:
- Search and filter hotels
- Create bookings (admin cannot create bookings)
- View past bookings
- Admin Dashboard:
- Manage users (create, view, edit, delete)
- View hotels
- View bookings
- Change own password
Getting Started
To run the project locally, follow these steps:
- Clone the repo
git clone [repository-url]
cd hotel-booking-system
- Install dependencies
npm install
- Create a .env file in the root directory and add your backend endpoint string:
NG_APP_DB_URL=[your_backend_url]
- Set up the backend:
Ensure the backend API is running and accessible.
Create an admin in the database using the following format:
{
"email": [adminEmail],
"role": "admin",
"password": [adminPassword]
}
- Start the Angular development server:
ng serve
- Open your browser and navigate to http://localhost:4200 to view the application.
Tech Stack