This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
surtur f40ebcfc64
All checks were successful
continuous-integration/drone/push Build is passing
makefile: bump kaniko to a cgroupv2-aware revision
2021-08-20 15:28:45 +02:00
Areas chore: cleanup in views 2021-02-18 20:23:28 +01:00
Controllers refactor: pass on List<Product> that has prod data 2021-02-21 03:24:41 +01:00
Deployment add systemd service file and nginx config snippet 2021-02-22 12:54:30 +01:00
Models deprecate Product in favour of SimilarProduct 2021-02-16 16:30:45 +01:00
Properties chore: add db connstring (dev) to launchSettings 2021-02-16 16:34:10 +01:00
Sqlscripts chore: bind the new."attr" as we're using postgres 2021-01-03 02:38:26 +01:00
Views add SimilarProducts partial view 2021-02-21 04:10:56 +01:00
wwwroot chore: reindent with tabs 2021-02-12 22:18:48 +01:00
.dockerignore add production compose file 2021-02-22 12:54:29 +01:00
.drone.yml ci: use linux-amd64 stable tag 2021-05-02 04:08:18 +02:00
.editorconfig add .editorconfig 2021-03-02 15:45:14 +01:00
.example-db.env add production compose file 2021-02-22 12:54:29 +01:00
.example-release_app.env add production compose file 2021-02-22 12:54:29 +01:00
.gitignore add production compose file 2021-02-22 12:54:29 +01:00
.hadolint.yaml feat: add hadolint Dockerfile linting 2021-01-26 17:35:44 +01:00
Dockerfile feat: unprivileged prod container w/ nobody+alpine 2021-02-23 15:19:16 +01:00
Dockerfile.dev feat: add hadolint Dockerfile linting 2021-01-26 17:35:44 +01:00
LICENSE feat: add LICENSE file 2020-11-21 14:21:19 +01:00
Makefile makefile: bump kaniko to a cgroupv2-aware revision 2021-08-20 15:28:45 +02:00
Program.cs feat: use logger 2021-02-10 03:26:37 +01:00
README.md chore: change compose targets 2021-01-23 14:25:24 +01:00
Startup.cs add healthcheck endpoint at /health 2021-02-22 15:28:01 +01:00
appsettings.Development.json chore: postgre --> postgres 2020-12-26 19:28:41 +01:00
appsettings.json chore: postgre --> postgres 2020-12-26 19:28:41 +01:00
config.cs add: config values 2021-02-08 23:13:12 +01:00
docker-compose.prod.yml chore: bump traefik to version 2.5.0 2021-08-20 15:09:59 +02:00
docker-compose.yml feat: use proper SELinux context for bind mounts 2021-02-12 19:26:28 +01:00
global.json chore: target 3.1.* + connected simplification 2020-12-26 17:26:11 +01:00
pwt-0x01-ng.csproj feat: add Customer area 2021-02-10 12:01:59 +01:00
pwt-0x01-ng.sln initial commit 2020-10-26 22:47:50 +01:00

pwt-0x01-ng

this repo holds sawce for PWT .netcore mvc project 0x01-ng

how to run this

  • Makefile (you need make for this) --> see the Makefile
  • direct dotnet (and/or docker) commands

useful Makefile targets

  • restore --> runs dotnet restore .
  • clean --> clean builds the project
  • build --> builds the project
  • dockerdevbuild --> clean-builds a container image from Dockerfile.dev (have a look in there for details)
  • dcdevb --> compose clean build of a debug (dev) version, pulling db
  • dcdevup --> runs the above (see docker-compose.yml)

you need to have created a db beforehand to run these

  • run --> runs $CURRENT_ENV dotnet watch run .
  • dev --> runs restore build run - this is kind of a convenience target

run using dotnet

run the dotnet commands from the solution folder note that a preconfigured db is required for any kind of running the project (consider taking a look at useful makefile targets)

on the first run, restore stuff

dotnet restore

build and run

dotnet build && dotnet run

errors

if you get a weird long error about not being able to listen bind a port, make sure nothing else is listening on the port this thing is trying to bind (tcp/5000).
if something else is already listening, solve it by killing it before running dotnet run or change the app port in Properties/launchSettings.json