title | description | tags | ||
---|---|---|---|---|
Postgrest |
A PostgREST instance with a PostgreSQL database. |
|
This template sets up a PostgREST instance with a PostgreSQL database.
- Postgres
- PostgREST
- Click the
Deploy on Railway
button - Set
PGRST_DB_URI
environment variable to${{ DATABASE_URL }}
. - Set
PGRST_DB_ANON_ROLE
environment variable toanon
to enable anonymous access. - Set
PGRST_JWT_SECRET
environment variable to secure your endpoints. Must be 32 characters or more. - Set
PORT
environment variable to3000
. Could be any valid port. - Set
PGRST_SERVER_PORT
environment variable to${{ PORT }}
. - Set a domain to expose your app.
You can configure your PostgREST instance with some other environment variables.
- This starter automagically provisions a PostgreSQL database for you when you click the
Deploy on Railway
.