-
API part of my social media experiment with .net core, entity framework core, react and mobx.
-
.vscode/
folder is commited on purpose. Command and query handler snippets are added and they might be useful for everyone. -
You can find client app here.
- Restore dependencies first, by
dotnet restore
- To build, run
dotnet build
command on terminal. - To run project,
- run
dotnet run -p API/
. - or navigate to API directory by
cd API/
and rundotnet run
command.
- run
- To run in watch mode
- You must navigate to API directory by
cd API/
to be able to use watch mode. - run
dotnet watch run
in API directory.
- You must navigate to API directory by
- To install globally (which I recommend), type
dotnet tool install -g dotnet-ef
on your terminal. - Simply run
dotnet ef
to see options and commands you can use. - To add migration
dotnet ef migrations add <MigrationName> -p <ProjectContainsDataContext>/ -s <StartupProject>/