Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

amplication/dotnet-8-api-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

Step 1: Configuration

Step 2.1: Scripts - pre-requisites

# installation of the dependencies
$ dotnet restore .

# create and apply initial migration
$ dotnet ef migrations add initialMigration

Step 2.1: Scripts - database schema migrations

# For any database model change, create the new migrations
$ dotnet ef migrations add <new migration name>

Migration will be automatically applied on docker compose up

Step 2.2: Scripts - local development

  • Run the service's dependencies in Docker docker-compose up
  • Run the service dotnet run --project ./src

Step 2.2: Scripts - container based development

  • Run the service and its dependencies in Docker docker-compose --profile complete up

Apply database migration in non-local environment

Database modification in non-local enviroment would be applied throught different strategies depending on the requirements. Follow Microsoft directions for your strategy: https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/applying

About

Sample api with EF, REST and Graphql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 92.6%
  • CSS 6.9%
  • Dockerfile 0.5%