Skip to content

matsskoglunds/DevkitApi

Repository files navigation

Welcome to DevkitApi

pipeline status

CodeBuild status

Docker status

Starting a mariadb docker for testing

docker run -p 3306:3306 --name devkit -e MYSQL_ROOT_PASSWORD=mypass -d mariadb

Building docker image

docker build -t matsskoglund/devkitapi:latest .

Running in Staging mode

Will create and use internal sqlite db. I use Development mode for testing for the moment.

docker run -e ASPNETCORE_ENVIRONMENT=Staging --net=host -it -p 5000:5000 matsskoglund/devkitapi:latest

Run the Postman tests

cd test newman run DevkitApi.Test.postman_collection.json

Using Docker networking

docker network create devkitapinet

docker network ls

docker run --net=devkitapinet --name devkitapidb -e MYSQL_ROOT_PASSWORD=mypass -d mariadb

docker build -t matsskoglund/devkitapi:latest .

set DBCONNECTION=server=devkitapidb;userid=root;password=mypass;database=devkit;

docker run -e ASPNETCORE_ENVIRONMENT=Staging -e DBCONNECTION=%DBCONNECTION% --net=devkitapinet --name devkitapi -d -p 5000:5000 matsskoglund/devkitapi:latest

newman run https://raw.githubusercontent.com/matsskoglund/DevkitApi/master/test/DevkitApi.Test.postman_collection.json

docker stop devkitapidb

docker stop devkitapi

docker network prune -f

About

The devkitapi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published