|
||
---|---|---|
Areas | ||
Controllers | ||
Deployment | ||
Models | ||
Properties | ||
Sqlscripts | ||
Views | ||
wwwroot | ||
.dockerignore | ||
.drone.yml | ||
.editorconfig | ||
.example-db.env | ||
.example-release_app.env | ||
.gitignore | ||
.hadolint.yaml | ||
appsettings.Development.json | ||
appsettings.json | ||
config.cs | ||
docker-compose.prod.yml | ||
docker-compose.yml | ||
Dockerfile | ||
Dockerfile.dev | ||
global.json | ||
LICENSE | ||
Makefile | ||
Program.cs | ||
pwt-0x01-ng.csproj | ||
pwt-0x01-ng.sln | ||
README.md | ||
Startup.cs |
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/ordocker
) commands
useful Makefile targets
restore
--> runsdotnet restore .
clean
--> clean builds the projectbuild
--> builds the projectdockerdevbuild
--> 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 dbdcdevup
--> 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
--> runsrestore 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