The Razor Ticket Booking System is a web-based application built with ASP.NET Core and Razor Pages. This system allows users to book tickets for events, manage reservations, and handle payments efficiently.
Before running the project locally, ensure you have the following installed:
- Docker
- Docker Compose
- .NET SDK 6.0+
- SQL Server
- Visual Studio 2022+ (recommended)
git clone https://github.com/haons211/razor-ticket-booking-system.git
cd razor-ticket-booking-systemEnsure Docker is running, then execute the following command:
docker-compose up --build -dThis will start the necessary services including the database and the application.
Ensure in the project folder:
cd razor-ticket-booking-systemStart migration:
dotnet ef database updateLoad my project:
http://localhost:8080/dotnet ef migrations add ...
dotnet ef database update
- If the application fails to start due to database issues, ensure SQL Server is running and the connection string is correct.
- Run
docker-compose logsto check logs for errors. - Check
.envsettings if environment variables are missing.
Feel free to submit issues and pull requests to improve the project.
This project is licensed under the MIT License.
