Data API, database migration scripts, and backend services for the Podverse ecosystem
Create a .env file in the root of this project, based on the example found in podverse-ops/config/podverse-api.env.example.
The AUTH_JWT_SECRET environment variable must be a valid UUID. The API will not start if this value is missing or not a valid UUID.
Generate a UUID:
# macOS / Linux
uuidgen
# Or use an online generator
# https://www.uuidgenerator.net/Example format:
AUTH_JWT_SECRET=123e4567-e89b-12d3-a456-426614174000
If the JWT secret is invalid, the API will fail to start with an error message like:
FATAL: AUTH_JWT_SECRET must be a valid UUID.
Podverse uses many modules that are maintained in separate repos, and they need to be linked and running for a local dev workflow. Please read the podverse-ops/dev/local-dev-setup.md file to set up the required dependencies and module linking.
Install the node_modules:
npm install
Then run:
npm run dev
Or if you want the app to auto-reload on saved changes:
npm run dev:watch
To deploy, build the docker image using the Dockerfile, and deploy the image on your server using the podverse-ops/docker-compose.yml file. See the podverse-ops/dev/deploying.md file for more info.