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 61a7f569cc
All checks were successful
continuous-integration/drone/push Build is passing
chore: cleanup in views
2021-02-18 20:23:28 +01:00
Areas chore: cleanup in views 2021-02-18 20:23:28 +01:00
Controllers chore: rm unnecessary using 2021-02-12 18:41:37 +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 mv: js to site.js 2021-02-12 22:05:55 +01:00
wwwroot chore: reindent with tabs 2021-02-12 22:18:48 +01:00
.dockerignore chore: update .dockerignore for smaller images 2020-12-27 04:46:38 +01:00
.drone.yml rename: pluginscache --> pkgcache 2021-02-07 22:13:15 +01:00
.gitignore chore: add jp{,e}g and png to .gitignore 2021-02-09 20:04:39 +01:00
.hadolint.yaml feat: add hadolint Dockerfile linting 2021-01-26 17:35:44 +01:00
Dockerfile feat: add hadolint Dockerfile linting 2021-01-26 17:35:44 +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 feat: use proper SELinux context for bind mounts 2021-02-12 19:26:28 +01: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 #if DEBUG RazorRuntimeCompilation 2021-02-18 20:01:18 +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.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