Easily run all services using docker-compose
. This will run Postgres, Redis, and the Ecosystem API server.
# copy .env example file
cp .env.example .env
# startup
docker-compose -f docker-compose.yml -f docker-compose.api.yml up
A GraphQL explorer will now be available at http://localhost:4000.
For local development, we run dependencies via docker-compose
, while using familiar tools like file-watchers locally.
docker-compose up -d
npm install
npm run dev
This will make a GraphQL explorer available at http://localhost:4000, which will reload the API on every local file change.
A DB copy tool is available that leverages containers to export and import data without needing any tools installed locally.
docker-compose up -d
./dump-db.sh <user> <password> <host> <db>
This exports from the target instance and imports into the locally running postgres instance.