To start with, make sure that virualization is abled on your pc and you have docker installed on it.
Useful links:
Microsoft's Guide to Enabling Virtualization
- Enable virtualization and setup Docker on your local machine
- Install neccessary extensions for Visual Studio Code:
- C# [extension ID: ms-dotnettools.csharp]
- Docker [extension ID: ms-azuretools.vscode-docker].
- Clone repository to your local machine
-
Copy and replace "appsettings.json" in a project's directory
-
Copy certs into ". ./optimal_cutting_backend/nginx/certs" folder
-
Run docker on your pc and navigate to docker-compose.yml folder
cd *your local path to folder*
or
cd ..
cd ..
- Build docker-compose
docker-compose build
From now on you need to manage several steps to start an application:
- Make sure that you have copied relevant version of appsettins.json file
- Make sure that docker is running up
- If there are any updates on project, you should rebuild docker-compose:
docker-compose build
- Execute following line of code in docker-compose.yml folder via Visual Studio Code
docker-compose up