Skip to content

ChristinaGolovach/.NET.Mentoring.L1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 

Repository files navigation

How to run app

module_6

Using docker

Steps:

  • build solution
  • install docker
  • after instaling switch to Windows containers
  • open cmd in the folder with docker file and create docker image docker build -t your_image_name .
example

alt-текст

result

alt-текст

  • run docker container based on the previously created image

docker run -p 27017:27017 --name your_container_name your_image_name

example

alt-текст

  • run Potestas.App.Terminal project

links: https://www.scalyr.com/blog/create-docker-image/ https://docs.docker.com/engine/reference/commandline/run/

Using direct mongo installation

Steps:

  • build solution
  • download mongodb
  • after downloading the archive package, unpack it into the folder C:\mongodb
  • create folders: C:\data\db
  • run MongoDB server: open cmd and enter cd C:\mongodb\bin after enter mongod
  • replace connectionString="mongodb://host.docker.internal:27017/observation" to the connectionString="mongodb://localhost/observation" in the Potestas.Apps.Terminal/App.config file
  • run Potestas.App.Terminal project

module_7

Task_1

alt-текст

Task_2

  • in cmd go to the folder .NET.Mentoring.L1/Potestas/Potestas.API and enter dotnet run
  • in Visual Studio (or VS Code :) ) run Potestas.Apps.Terminal project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published