/social-me-die

A social media experiment with .net core, ef core, react and mobx.

Primary LanguageC#MIT LicenseMIT

.NET Core Build status Quality Gate Status GitHub release (latest by date) David GitHub contributors GitHub

social-me-die

  • 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.

build and run

  • 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 run dotnet run command.
  • 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.

Ef Core

  • 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>/