The application uses SQL Server as the database management system. The following steps detail how to set up the database:
- Connection settings
Edit theappsettings.json
file to include the SQL Server connection string in the corresponding section:
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=Home;Initial Catalog=HeroesOfBlazor;Trusted_Connection=True;TrustServerCertificate=True;"
}
}
You can change the database provider in the
Program.cs
file. Remember to install the corresponding NuGet package and uninstall the previous one.
- Database Migrations (More info)
To create migrations and then apply them to the database you can use the following commands:
dotnet ef migrations add MigrationName
dotnet ef database update
Or if you prefer to use the Package Manager Console:
Add-Migration MigrationName
Update-Database
If you are using Rider, checkout this plugin.
There are no future updates planned for this project. This project is complete and no further updates are expected. Besides that, feel free to fork this repository and make your own changes.
This was made as a learning project and it is not intended to be used in production.
This project is Dockerized, which ensures portability and facilitates deployment in different environments. The Dockerfile
provides the necessary instructions for the container creation.
-
Clone the repo
git clone https://github.com/ENez7/HeroesOfBlazor.git
-
Compile and Run
cd HeroesOfBlazor dotnet build dotnet run
-
Access the App
Once the application is running, you can access it through the web browser at http://localhost:5169.
You can change the port according to your needs in
properties/launchSettings.json
This project could be improved in many ways. If you want to collaborate, you can fork the repository and make your own changes. If you want to contribute to the project, you can open a pull request and I will review it as soon as possible.
If you find any problems or need technical support, you can open an issue in the project's issue tracker
Software Engineer
Enrique Núñez