Public | Automated Build

Last pushed: a year ago
Short Description
Email service
Full Description

First run

dotnet restore
dotnet build
dotnet run

This will run the microservice on your machine.

Haven't tested these:

Building the docker image:

docker build -t email-microservice .

Running the docker image:

docker run -d -p 8080:5001 --name [instance_name] email-microservice

Should be able to access application from host computer



  • -d means "Detached", run docker attach [instance_name] to see tty
  • -p means "Publish", which publishes/forwards ports in the format of forwarded-to:incoming


dotnet ef migrations add {MigrationName}

This adds a new migration. To create a new migration, simply modify the models in /Models and run this command. The generated migration files will contain the instructions to update the database.

dotnet ef migrations remove

Removes the most recent migration.

dotnet ef database update 

Applies all migrations.

Docker Pull Command
Source Repository