WIP Logging service and API.

This commit is contained in:
2019-03-02 02:04:51 -06:00
parent fc8dbd3fb7
commit e9bdcbffcd
16 changed files with 331 additions and 28 deletions

View File

@ -1,7 +1,9 @@
PGSQL_CONTAINER_ID=`cat postgres.container.id`
DB_NAME="personal_measure"
SOURCES=$(wildcard src/main/nim/*.nim) $(wildcard src/main/nim/personal_measure_apipkg/*.nim)
start-db: start-postgres
serve: personal_measure_api start-postgres
./personal_measure_api serve
postgres.container.id:
docker run --name postgres-$(DB_NAME) -e POSTGRES_PASSWORD=password -p 5500:5432 -d postgres > postgres.container.id
@ -24,3 +26,6 @@ delete-postgres-container:
connect:
PGPASSWORD=password psql -p 5500 -U postgres -h localhost ${DB_NAME}
personal_measure_api: $(SOURCES)
nimble build