/SPV

Primary LanguageC#GNU General Public License v3.0GPL-3.0

Food Grindr - API

A REST application interface for the web & mobile application by the name of Food Grindr. An API for authentication, sending and receiving application data and managing the work with the database. It is using the Microsoft .NET 6 framework, .NET Entity Core, Entity framework as a temporary database with later plans to implement the api to a MySQL database.

Food Grindr Landing

Set Up

Entity Framework set up

After downloading the repository into visual studio you will have to change the db configuration string to your local db

Inside appsettings.json you can find the connections string object

image

Change the DefaultConnection property to the connection string of your db.

Inside Visual Studio you can find it at

image

Click sql Server Object Explorer

image

Click properties

image

here you will see your default sql server instance

Inside Package manager console use :

cd .\SPV (make sure that you are in the correct folder)

dotnet tool install --global dotnet-ef --version 6.*

dotnet ef migrations add secondarymigration

dotnet ef database update

In this order so you can deploy the db

The Database can be found at Sql server explorer under localdb/database/master/tables