Skip to content

uiopak/LegoSorterWeb

Repository files navigation

How to run

  1. Clone repository
  2. Install .NET 7 SDK https://dotnet.microsoft.com/en-us/download/dotnet/7.0
  3. Install node.js https://nodejs.org/en/download/
  4. Install pnpm https://pnpm.io/installation

Best results installing with:

npm install -g pnpm
  1. Install node dependencies
cd LegoSorterWeb/
cd ClientApp/
pnpm install
  1. Build
cd ..
dotnet publish -c Release
  1. Run
dotnet published/LegoSorterWeb.dll

How to run Docker

  1. Clone repository
  2. Build docker image

Run from repository root (directory containing README.md)

docker build -t lego_gui -f .\LegoSorterWeb\Dockerfile .
  1. Create directory to save database
  2. Copy database file to new directory Copy LegoSorterWeb\Database\LegoSorterWebDB.sqlite3 to new directory
  3. Create container

Windows (PowerShell) example:

docker run -d -p 5002:80 --restart unless-stopped --name lego_gui_sample `
 --mount type=bind,source=//g/LEGO/.net7test/db,destination=/app/Database lego_gui
  1. If LegoSorterServer is running on different machine change ip here: http://ip:5002/config

Optional information

Running without mount will work database will keep data between container restarts, but data will be lost after updating container:

docker run -d -p 5002:80 --restart unless-stopped --name lego_gui_sample lego_gui

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published