This is a full-stack hotel booking project. Users can browse rooms, make reservations, and manage their bookings. The admin can manage rooms and user bookings.
- Frontend: React
- Backend: Spring Boot
- Database: MySQL
- Java 17 (or your version)
- Node.js (v18 or your version)
- MySQL Server
First, set up the database.
-
Open your MySQL server and create a new database: CREATE DATABASE your_db_name;
-
In the /backend folder, create an application.properties file.
-
Copy the contents from application.properties.example and fill in your database username and password.
-
Run the backend: bash
cd backend
mvn spring-boot:run
The backend will be running on http://localhost:8080.
-
Open a new terminal.
-
Navigate to the frontend folder: bash
cd frontend
npm install
npm start
The frontend will open in your browser at http://localhost:3000.