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 4b42658671
All checks were successful
continuous-integration/drone/push Build is passing
feat: add Customer area
* controller
* views
* SessionExtensions class
2021-02-10 12:01:59 +01:00
Areas feat: add Customer area 2021-02-10 12:01:59 +01:00
Controllers feat: use logger 2021-02-10 03:26:37 +01:00
Models feat: add Customer area 2021-02-10 12:01:59 +01:00
Properties chore: conditional razor runtime compilation 2020-12-27 16:22:27 +01:00
Sqlscripts chore: bind the new."attr" as we're using postgres 2021-01-03 02:38:26 +01:00
Views chore: edit visibility of certain navbar items 2021-02-09 22:31:15 +01:00
wwwroot feat: add Customer area 2021-02-10 12:01:59 +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 merge: feature-add-identity 2021-01-28 15:27:25 +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 chore: prepare for using session in Startup 2021-02-10 11:21:04 +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 chore: setting this never gets old 2020-12-27 05:29:33 +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