4.5 KiB
Developing Supabase
- Development Setup
- Installing Dependencies
- Building Supabase
- Start a Development Server
- What's Next?
- Community Channels
Development Setup
First off, thanks for your interest in Supabase and for wanting to contribute!
Before you begin, read the code of conduct and check out the existing issues.
This document describes how to set up your development environment to build and test Supabase.
Installing Dependencies
Before you can build Supabase, you must install and configure the following dependencies on your machine:
Forking Supabase on Github
To contribute code to Supabase, you must fork the Supabase Repository. After you fork the repository, you may now begin editing the source code.
Building Supabase
To build Supabase, you clone the source code repository:
-
Clone your Github forked repository:
git clone https://github.com/<github_username>/supabase.git -
Go to the Supabase directory:
cd supabase
Choosing Directory
Before you start a development server, you must choose if you want to work on the Supabase Website, Supabase Docs, or Supabase Studio.
-
Go to the Supabase Website directory
cd wwwGo to the Supabase Docs directory
cd webGo to the Supabase Studio directory
cd studio -
Install npm dependencies:
npm
npm installor with yarn
yarn install
Start a Development Server
To debug code, and to see changes in real time, it is often useful to have a local HTTP server. Click one of the three links below to choose which development server you want to start.
Supabase Website Development Server
-
Start development server
npm
npm run devor with yarn
yarn dev -
To access the local server, enter the following URL into your web browser:
http://localhost:3000/
Supabase Docs Development Server
-
Build development server
npm
npm run buildor with yarn
yarn build -
Start development server
npm
npm run startor with yarn
yarn start -
To access the local server, enter the following URL into your web browser:
http://localhost:3005/docs
Supabase Studio Development Server
-
Start development server
npm
npm run devor with yarn
yarn dev -
To access the local server, enter the following URL into your web browser:
http://localhost:8082/
What's Next?
Make your changes to the file(s) you'd like to update.
Open a pull request
When you're done making changes and you'd like to propose them for review by opening a pull request.
Submit your PR & get it reviewed
- Once you submit your PR, others from the Unleash community will review it with you. The first thing you're going to want to do is a self review.
- After that, we may have questions, check back on your PR to keep up with the conversation.
- Did you have an issue, like a merge conflict? Check out GitHub's git tutorial on how to resolve merge conflicts and other issues.
Your PR is merged!
Congratulations! The whole Supabase community thanks you 🙏🏼
Once your PR is merged, you will be proudly listed as a contributor in the contributor chart.
Community Channels
Stuck somewhere? Have any questions? please join the Discord Community Server or the Github Discussions. We are here to help!