Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (26 loc) · 1.23 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.23 KB

Critical Maps API

Build Status Code Climate Test Coverage Dependency Status

Start development session with:

docker-compose -f docker-compose.dev.yml up --build

Api will be available under:

http://localhost:3000

Debugger will be available at:

http://localhost:8080/?port=5858

phpPgAdmin is at:

http://localhost:8082/phppgadmin/

Migrations

docker build -t criticalmaps-db-migrations -f Dockerfile.migrations . && \
docker run \
-v $(pwd)/migrations/:/migrations/ \
-e DATABASE_URL=postgres://bla:bla@db/criticalmaps \
criticalmaps-db-migrations \
up

docker exec -ti $(docker ps | grep postgres | awk '{ print $1}') /bin/bash

psql -d criticalmaps -U bla

TODO

cors header??