Before you run the application, set up the database by following these steps. This ensures everything works smoothly.
- Open the project in VS Code and connect to the provided Dev Container.
-
Restore Dotnet Tools: Run
dotnet tools restore
in the terminal to install the Entity Framework (EF) CLI, necessary for applying EF migrations. -
Apply Database Migrations: Use
dotnet ef update
to apply all EF migrations and create the database if it doesn't exist.
After setting up the database, start the application using dotnet run
or through your IDE. It will automatically create a default admin account.
See the "Default Admin Account" section for more information on using this account.
A default admin account is created automatically on the first startup in a development environment. It's designed for immediate access to administrative features.
- Username:
admin
- Email:
[email protected]
- Password:
password
- Role:
Admin
Use this account to sign in and access administrative areas. It's fully enabled for all features and settings, ideal for setup and testing.
If you can't access the application with the admin account, check if the database has been seeded correctly and look for any startup errors in the application logs.