This was developed and tested in Linux 5.4.x only.
- Docker
- Docker Compose
- SQL Server Client
SQL Server VS Code extension or Azure Data Studio or any other
The following command starts SQL Server 2019, .Net Core API, Angular Webapp, and container for EF Core tool.
docker-compose up
To view logs of a specific service run
docker-compose logs -f <service_name>
in a different terminal. E.g.docker-compose logs -f api
-
Create a database
Create a database using SQL Server Client
CREATE DATABASE WorldCities;
-
Updates the DB to the last migration
Use
docker-compose exec migrations dotnet ef
command to deal with DB migrationdocker-compose exec migrations dotnet ef database update
-
API Tests
docker-compose -f docker-compose.tests.yml up api-tests
-
Webapp Tests
docker-compose -f docker-compose.tests.yml up webapp-tests
- .NET Core 3.1
- EF Core tool 3.1
- Node.js 12.x
- SQL Server
- SQL Server Client
SQL Server VS Code extension or Azure Data Studio or any other
-
Create a database
Create a database using SQL Server Client
CREATE DATABASE WorldCities;
-
Updates the DB to the last migration
dotnet ef database update
The following command starts .Net Core API and Angular Webapp.
dotnet watch --project=WorldCities run
-
API Tests
dotnet watch --project=WorldCities.Tests test
-
Webapp Tests
cd WorldCities/ClientApp/ npm test