Data API, database migration scripts, and backend services for the Podverse ecosystem
This repo contains steps for running podverse-api locally for development.
For stage/prod deployment instructions, please refer to the podverse-ops docs.
Before you can run podverse-api you will need a local Postgres version 11.5 database running.
You can setup your own database, or go to the podverse-ops repo, add the podverse-db-local.env file as explained in the docs, then run this command:
docker-compose -f docker-compose.local.yml up -d podverse_db
For local development, environment variables are provided by a local .env file. Duplicate the .env.example file, rename it to .env, and update all of the environment variables to match what is needed for your environment.
npm install
npm run dev
TODO: Sample db instructions are out of date The podverse-ops repo contains the qa-database.sql file to help you get started quickly with a development database. You can clone the podverse-ops repo, then run the following command after the Postgres database is running:
psql -h 0.0.0.0 -p 5432 -U postgres -W -f ./sample-database/qa-database.sql
The password for the .sql file is: mysecretpw