Skip to content

olyannaa/optimal_cutting_backend

Repository files navigation

optimal_cutting_backend

Deploying backend in development via Visual Studio Code

Getting started

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

Docker's Main Page

Preparations

  1. Enable virtualization and setup Docker on your local machine
  2. Install neccessary extensions for Visual Studio Code:
    • C# [extension ID: ms-dotnettools.csharp]
    • Docker [extension ID: ms-azuretools.vscode-docker].
  3. Clone repository to your local machine

Project Setup

  1. Copy and replace "appsettings.json" in a project's directory

  2. Copy certs into ". ./optimal_cutting_backend/nginx/certs" folder

  3. Run docker on your pc and navigate to docker-compose.yml folder

cd *your local path to folder*

or

cd ..
cd ..
  1. Build docker-compose
docker-compose build

Start application

From now on you need to manage several steps to start an application:

  1. Make sure that you have copied relevant version of appsettins.json file
  2. Make sure that docker is running up
  3. If there are any updates on project, you should rebuild docker-compose:
docker-compose build
  1. Execute following line of code in docker-compose.yml folder via Visual Studio Code
docker-compose up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors