This project is a simple event management system with CRUD (Create, Read, Update, Delete) functionality for events. It includes a backend built with ASP.NET Core and a frontend developed using Angular (standalone app structure).
- Language: C#
- Framework: ASP.NET Core 9.0
- Database: Entity Framework Core with a SQL Server database
- Logging: Serilog
- Framework: Angular 19.0
- TypeScript: For building the application logic
- Styling: Custom CSS for responsive and modern design
To configure the connection string for the database:
- Open the
appsettings.jsonfile in the backend project. - Locate the
ConnectionStringssection and update it to point to your SQL Server database.
{
"ConnectionStrings": {
"DefaultConnection": "Server=YOUR_SERVER_NAME;Database=EventDb;Trusted_Connection=True;MultipleActiveResultSets=true"
}
}If the database schema needs to be updated, use the following commands:
- Open a terminal or command prompt in the backend project directory.
- Add a migration (if changes have been made to the models):
dotnet ef migrations add MigrationName- Update the database:
dotnet ef database updateBy default, it will be hosted on https://localhost:7244.
- Update the backend url in event-service.ts
- Install Dependencies
npm install
- Run the Frontend
ng serve
The app will be available at http://localhost:4200.
- EventManagementData for database accessing layer.
- EventManagementBusiness for business layer.
- EventManagementApi for presentation layer.
- event-list: Component for displaying and managing the list of events.
- event-form: Component for creating and editing events.