Skip to content

hfcook3/wargame-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d5fed0f · Feb 18, 2023

History

6 Commits
Jan 29, 2023
Feb 18, 2023
Feb 18, 2023
Jan 29, 2023
Jan 28, 2023
Feb 5, 2023
Jan 30, 2023
Jan 29, 2023

Repository files navigation

Wargame API

Running locally (out of the box)

Requirements

  • Docker Desktop
  • dotnet entity framework cli tool

How to run

  1. In the root directory, run docker compose up to spin up a local postgresql container pointed at port 5431
  2. In the api directory, run dotnet ef database update --connection "Host=localhost;Port=5431;Database=kill-team;User ID=postgres;Password=sillylocalpassword"
  3. Run in debug mode with valid configs (see config section below)

Config

Here are the necessary configs for running this api currently (with example values):

ConnectionStrings__KillTeamContext="Host=localhost;Port=5431;Database=kill-team;User ID=postgres;Password=sillylocalpassword"

Testing

There are integratino tests which are currently run against a local postgresql instance at port 5431

About

Web API for various tabletop wargames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages