This is an example application to deploy with Kubernetes. In case it isn't obvious from the name, nothing here is intended for real-world production use.
This example is expected to be deployed with Docker. Both the client and the server include a Dockerfile.
The server accepts the following environment variables for configuration:
PORT
- The port to listen on (default: 3000)FRONTEND_URL
- The URL the client is available on; used for redirecting after a Stripe Checkout session (no default, example:https://app.example.com
)MARIADB_HOST
- The hostname or IP address of the MariaDB serverMARIADB_PORT
- The port the MariaDB server is listening onMARIADB_USERNAME
- The MariaDB usernameMARIADB_PASSWORD
- The MariaDB passwordMARIADB_DATABASE
- The MariaDB database nameSTRIPE_API_KEY
- A Stripe API key (WARNING: This application isn't intended for production use. Only run it with a Stripe test key)
The client accepts one environment variable:
GRAPHQL_URL
- The URL of the GraphQL endpoint to use (example:http://api.example.com/graphql
)
The server will not run any outstanding database migrations automatically - to run them, execute yarn migrate
in a running server container (or a fresh container with the same environment variables set).