Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlogMaker api

Install .NET

Download the latest SDK .NET (v9.0.1) here: SDK .NET

Check if it's properly installed by running:

dotnet --version

Install Database

Install globally dotnet-ef to its latest version (matching your .NET major version v9.0.1)

Here is a link: dotnet-ef

Run a migration update, it will create the database:

dotnet ef database update

Launch the webapi server

To start the api server, make sure you're in the webapi folder in your terminal and run:

dotnet run

The webapi server is launched ! :D

The app is running on http://localhost:5090. If you go to this URL, you'll get the swagger.

Additionnal infos

To add migrations, run:

dotnet ef add migration-name -o Data/Migrations

To drop the database, run:

dotnet ef database drop

then run update:

dotnet ef database update

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages