WIP Logging service and API.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user