Skip to content

FIPost/location-service

Repository files navigation

ipost-logo

Location Service

Build .NET API Docker Publish Board Status

Getting Started

dotnet build
dotnet restore
dotnet run

Run with Docker

docker-compose up --build

Run external database

Set your own database by editing the connectionstring in appsettings.json.
Then run:

docker run -p 5002:5002 --name location-service-app location-service

Error: Docker Network Missing

If you get the following error: Network ipost-network declared as external, but could not be found. Run the following:

docker network create ipost-network

Migration

dotnet ef migrations add migrationName
dotnet ef database update

Revert migration

dotnet ef database update targetMigration