Install the dependencies with
You will also need a running Postgres database.
Running the server
The server needs the following environment variables set:
SMTP_URL: Address for connecting to your SMTP server, including username and password as needed (example:
DATABASE_URL: Connection details for the Postgres database (example:
APP_URL: URL where the client app is available (example:
JWT_SECRET: Secret string used for creating and validating client authentication tokens
PORT: The port you want the API server to listen on (example:
Prepare the database with
npm run migrate.
Then the server can be started with
Building the client
To build the client app, you need to first set an environment variable:
API_URL: URL where the server will be running (example:
Then build the client app with
npm run build
The client can be served with
npm run client.