Please note, that you will need an up and running Docker instance to operate the project locally. Also, Node.js is mandatory.
The following steps are mandatory in order to put the project into operation for local development:
You will find a detailed description of the installation process at Supabase "getting started" documentation. Please note that you will need a local Docker instance up and running for this.
On startup, via supabase start
, supabase will provide all required information for further configuration.
Alternatively use supabase status
at runtime:
API URL: http://localhost:54321
GraphQL URL: http://localhost:54321/graphql/v1
DB URL: postgresql://postgres:postgres@localhost:54322/postgres
Studio URL: http://localhost:54323
Inbucket URL: http://localhost:54324
JWT secret: xxx-xxx-xxx-xxx-xxx
anon key: xxx-xxx-xxx-xxx-xxx
service_role key: xxx-xxx-xxx-xxx-xxx
The Studio URL leads to Supabase studio, an administrative interface for Supabase. Supabase inbucket is a container for all e-mails sent by Supabase. These e-mails can be viewed under the Inbucket URL.
The easiest way is to copy the .env.example
file and adjust the important entries accordingly by the values of supabase status
:
SUPABASE_ANON_KEY="xxx-xxx-xxx-xxx-xxx"
SERVICE_ROLE_KEY="xxx-xxx-xxx-xxx-xxx"
SUPABASE_URL="http://localhost:54321"
DATABASE_URL="postgresql://postgres:postgres@localhost:54322/postgres"
# ...
A local imgproxy instance is required for most of the graphics contained in the project. The easiest way to put this into operation is via make
:
# Start imgproxy
make imgproxy
# Stop imgproxy
make imgproxy_stop
Run the script
npx ts-node prisma/scripts/seed-database/index.ts -s 2 -r -e 1 -i 1 -d 1
this will seed the database with random but reasonably data.
To use the custom fonts integrated in the project, they must be copied to a local directory using a script.
npm run copy:fonts
npm run dev
npm run build
npm run start