Skip to content

Data API, database migration scripts, and backend services for all Podverse apps

License

Notifications You must be signed in to change notification settings

podverse/podverse-api

Repository files navigation

podverse-api

Data API, database migration scripts, and backend services for the Podverse ecosystem

Dev Setup

Environment Variables

Create a .env file in the root of this project, based on the example found in podverse-ops/config/podverse-api.env.example.

AUTH_JWT_SECRET (Required)

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.

Local Dev Workflow

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.

Running Locally

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

Deploying

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.

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  

Languages