Next.js, Urql, Apollo, Prisma, PostgreSQL
- Install and run Docker-compose
- Install Node.js version >= 18.
- Or run
nvm use
in this directory
- Or run
- Install dependencies in
/ui
yarn
- In /ui, copy
.env.local.default
to.env.local
In /ui
:
docker-compose up
Then, run yarn migrate
in another terminal.
In /ui
yarn dev
You can login with the link shown in the terminal.
We are using crowdin + react-intl for translations. It works like this
- Text is rendered using FormatMessage component which is imported from react-intl. The default message is the message which appears if a translation is missing.
- The id of the text is generated using hash function.
yarn extract
command extracts the default messages from the code and assign them an id. These are stored in en.json file.- The en.json file is uploaded to crowdin using
yarn crowdin:upload
command. - After translating text, translations can be downloaded using the command
yarn crowdin:download
To make stripe checkout work you need their webhooks to reach your machine. Do this by running ./scripts/forward-stripe-webhooks.sh
(you'll need the stripe CLI and to have logged in using stripe login
before that) in a terminal in the background. That command will also give you a webhook secret in the format whsec_123...
, you should set the env var STRIPE_WEBHOOK_SECRET
to this value.
Released under AGPL-3.0-or-later, with some additional terms. All of which are included in the file LICENSE in the git repository.