We greatly appreciate any contributions made to Reflio, and as an early contributor, your contribution will make a huge and lasting impact to Reflio.
- Before jumping into a PR be sure to search existing PRs or issues for an open or closed item that relates to your submission.
The development branch is main
. This is the branch that all pull requests should be made against. The changes on the main
branch are tagged into each new release of Reflio.
To develop locally:
-
Fork this repository to your own GitHub account and then clone it to your local device.
-
Create a new branch:
git checkout -b MY_BRANCH_NAME
-
Install yarn:
npm install -g yarn
-
Install the dependencies with:
yarn
-
Start developing and watch for code changes:
yarn dev
In the project root, you will find a .env.example
file which is split by #REQUIRED FOR BUILD
and OPTIONAL / NOT REQUIRED FOR BUILD
.
Reflio uses Supabase as an auth, storage and PostgreSQL database provider. You will need to create a free account via Supabase.com to get your required database variables.
- Signup to Supabase via Supabase.com with your GitHub account
- Click "New project"
- Create a new organisation, "reflio" as an example
- Enter a database name and password, select your preferred region and choose the free pricing plan
- Click "Create new project"
- Once your project has finished setting up, copy the
anon public
key to yourNEXT_PUBLIC_SUPABASE_URL
env variable, copyservice_role secret
toSUPABASE_SERVICE_ROLE_KEY
and lastlyURL
toNEXT_PUBLIC_SUPABASE_URL
. - Lastly, go to the "SQL Editor" tab in Supabase, click "New query", then copy and paste the entire
schema.sql
file contents within the/schema
folder located the root of your Reflio folder.
Your Supabase instance should now be setup, allowing you to complete a yarn build
succesfully.
You can build the project with:
yarn build
Please be sure that you can make a full production build before pushing code.
If you get errors, be sure to fix them before committing.
- Be sure to check the "Allow edits from maintainers" option while creating you PR.
- If your PR refers to or fixes an issue, be sure to add
refs #XXX
orfixes #XXX
to the PR description. ReplacingXXX
with the respective issue number. Se more about Linking a pull request to an issue - Be sure to fill in the PR Template accordingly.