- Installed Node.js (version 16.x)
- .NET 6.0.x SDK
- Installed yarn (might by a part od Node.js 16.x - need to check it)
- Installed Angular CLI version 11.2.18 (
yarn global add @angular/[email protected]
)
- Open Synopackage.sln solution
- Open console and go to web project
cd Synopackage.Web\src
- Run in console
yarn
- Compile frontend
ng build
- Press F5 to run with debug
- Open
src
folder - Open console and go to web project
cd Synopackage.Web\src
- Run in console
yarn
- IN VS Code run task
ng build (development)
- Press F5 - to run with debug
VS Code extensions:
- C# (Omnisharp)
- TSLint
- ESLint
- Fork the repository
- Clone the repository on local computer
cd src/synopackage_dotnet.web/src/
yarn
ng build --configuration=development
cd ..
dotnet restore
dotnet build
dotnet run
- in browser
http://localhost:58893
To create docker image:
- Go to
src
folder - Run
docker build .
(this can take a while) - Check the image hash (
docker images
) - Run it
docker run -d -p 8080:80 --name synopackage -v synopackage_cache:/app/wwwroot/cache [image_hash]
Alternative you can download latest available image from docker registry:
docker run -d -p 8080:80 --name synopackage -v synopackage_cache:/app/wwwroot/cache szyb/synopackage_dotnet:latest
- visit website at
http://your_host_domain:8080
(i.e.http://localhost:8080
if you run image on your local machine)
When proxy is required then use environment variables http_proxy
and add it to command when running container, i.e.
docker run -d -p 8080:80 --name synopackage -e "http_proxy=10.0.0.1:3128" -v synopackage_cache:/app/wwwroot/cache synopackage_dotnet:latest
Found issue? Feel free to contribute: file an issue or create pull request
Enjoy!