alpimi-planner-backend

A backend .NET repo for the Alpimi Planner

MIT License

Stars
0

Alpimi planner backend

A WEP API created in .NET for the Alpimi planner

Setup for development

  • Install SQL Server Developer

  • Launch View > Server Explorer in Visual Studio, right click Data Connections and Create New SQL Server Database, provide your hostname as a server name and check Trust server certificate

  • After a successful connection, right click the database, select Properties and copy the connection string

  • Create a .env file inside the root of the project containing:

CONNECTION_STRING="put_connection_string_here"
  • Install Entity Framework tool globally
dotnet tool install --global dotnet-ef
  • Update your database with the latest migration
dotnet ef database update

Tips

  • Install CSharpier, go to Tools > Options > CSharpier > General and change Reformat with CSharpier on Save to True. It will save you a lot of time

  • Remember to add a migration whenever an entity is changed:

dotnet ef migrations add MigrationName
dotnet ef database update