Skip to content

Oschangkai/aacsb-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AACSB Portal API

Environment

  • Jetbrains Rider 2022.2.2
  • .NET Core 6
  • .NET CLI

Pre-requirement

DB Migration

  1. You can use Inmemory DB for test!!
  2. Install ef tool dotnet tool install --global dotnet-ef
  3. Start a MSSQL
    • For common users docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=P@$$w0rd' -p 1433:1433 -d mcr.microsoft.com/mssql/server
    • For Apple Silicon users docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=P@$$w0rd' -p 1433:1433 -d mcr.microsoft.com/azure-sql-edge
  4. Set environment string (DB)
  5. Migrate DB

This project will migrate db automatically.

DB Add Migration

$ dotnet ef migrations add <CommitMessage> \
    --project ./src/Migrators/Migrators.<DBProvider>/ \
    --context ApplicationDbContext \
    -o Migrations/Application \
    --startup-project ./src/Host
# revert
$ dotnet ef database update <previous-migration-name> \
    --startup-project ./src/Host \
    --context ApplicationDbContext
    
# remove
$ dotnet ef migrations remove \
    --project ./src/Migrators/Migrators.<DBProvider>/ \
    --startup-project ./src/Host \
    --context ApplicationDbContext

Environment Variables

All the environment variables are located at src/Host, there are all the configuration files, one for each area.

Others

This project is based on codewithmukesh, which can be download from here. Detailed architecture introduction can be found here and CQRS Design.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages