The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Chore/update developers guide (#19050)
Terry Suttond370831bc5a1
diff --git a/DEVELOPERS.md b/DEVELOPERS.mdindex 78cfcda3598..019f741ab9e 100644--- a/DEVELOPERS.md+++ b/DEVELOPERS.md@@ -3,7 +3,7 @@1. [Getting started](#getting-started)- [Install dependencies](#install-dependencies)2. [Local development](#local-development)- - [Fork the repository](#fork-the-repository)+ - [Fork the repo](#fork-the-repo)- [Clone the repo](#clone-the-repo)- [Running turborepo](#running-turborepo)- [Shared components](#shared-components)@@ -17,9 +17,9 @@## Getting started-Thank you for expressing your interest in [Supabase](https://supabase.com) and your willingness to contribute!+Thank you for your interest in [Supabase](https://supabase.com) and your willingness to contribute!-To ensure a positive and inclusive environment, we kindly request you to read our [code of conduct](https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md). Additionally, we encourage you to explore the existing [issues](https://github.com/supabase/supabase/issues) to see how you can make a meaningful impact. This document will guide you through the process of setting up your development environment, enabling you to successfully build and test [Supabase](https://supabase.com).+To ensure a positive and inclusive environment, please read our [code of conduct](https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md). We encourage you to explore the existing [issues](https://github.com/supabase/supabase/issues) to see how you can make a meaningful impact. This document will help you setup your development environment.### Install dependencies@@ -28,20 +28,22 @@ You will need to install and configure the following dependencies on your machin- [Git](http://git-scm.com/)- [Node.js v18.x (LTS)](http://nodejs.org)- [npm](https://www.npmjs.com/) version 9.x.x+- [Docker](https://docs.docker.com/get-docker/) (to run studio locally)+-## Local development-We are in the process of migrating this repository to monorepo, using [Turborepo](https://turborepo.org/docs).+This repo uses [Turborepo](https://turborepo.org/docs).-Eventually, all the apps will be run using [Turborepo](https://turborepo.org/docs), which will significantly improve the developer workflow.+All of our apps are in this [Turborepo](https://turborepo.org/docs), which make it easy to share packages and config between projects.-### Fork the repository+### Fork the repo-To contribute code to [Supabase](https://supabase.com), you must fork the [Supabase Repository](https://github.com/supabase/supabase).+To contribute code to [Supabase](https://supabase.com), you must fork the [Supabase repo](https://github.com/supabase/supabase).### Clone the repo-1. Clone your GitHub forked repository:+1. Clone your GitHub forked repo:```shgit clone https://github.com/<github_username>/supabase.git@@ -52,9 +54,7 @@ To contribute code to [Supabase](https://supabase.com), you must fork the [Supabcd supabase```-### Running turborepo--[Supabase](https://supabase.com) uses [Turborepo](https://turborepo.org/docs) to manage and run this monorepo.+### Install dependencies1. Install the dependencies in the root of the repo.@@ -69,11 +69,11 @@ To contribute code to [Supabase](https://supabase.com), you must fork the [SupabThen visit, and edit, any of the following sites:-| Site | Directory | Scope name | Description | Local development server |-| -------------------------------------------------------- | ------------ | ---------- | ------------------------------------ | -------------------------- |-| [supabase.com](https://supabase.com) | `/apps/www` | www | The main website | http://localhost:3000 |-| [supabase.com/dashboard](https://supabase.com/dashboard) | `/studio` | studio | Studio dashboard | http://localhost:8082 |-| [supabase.com/docs](https://supabase.com/docs) | `/apps/docs` | docs | Guides and Reference (Next.js based) | http://localhost:3001/docs |+| Site | Directory | Scope name | Description | Local development server |+| -------------------------------------------------------- | -------------- | ---------- | --------------------------------------------- | -------------------------- |+| [supabase.com](https://supabase.com) | `/apps/www` | www | The main website | http://localhost:3000 |+| [supabase.com/dashboard](https://supabase.com/dashboard) | `/apps/studio` | studio | Studio dashboard (requires Docker, see below) | http://localhost:8082 |+| [supabase.com/docs](https://supabase.com/docs) | `/apps/docs` | docs | Guides and Reference (Next.js based) | http://localhost:3001/docs |#### Running sites individually@@ -87,7 +87,7 @@ npm run dev:wwwThe monorepo has a set of shared components under `/packages`:-- `/packages/common`: Common React code, shared between all sites.+- `/packages/common`: Common React components, shared between all sites.- `/packages/config`: All shared config- `/packages/spec`: Generates documentation using spec files.- `/packages/tsconfig`: Shared Typescript settings@@ -102,29 +102,21 @@ For example:- `npm install react -w common`: installs into `./packages/common`- `npm install react -w www`: installs into `./apps/www`-- `npm install react -w studio`: installs into `./studio`+- `npm install react -w studio`: installs into `./apps/studio`You do not need to install `devDependencies` in each workspace. These can all be installed in the root package.-#### New Supabase docs--Following the changes to the [Supabase docs](https://supabase.com/blog/new-supabase-docs-built-with-nextjs) the following is needed to run the new docs locally:--- Inside of `apps/docs` create a `.env.local` file with the following: `NEXT_PUBLIC_NEW_DOCS=true`--Now when you run a local development docs server you will see the new docs site.-----## Running Docker+## Running Docker for Supabase Studio-To test your changes, you need to run Supabase using Docker. Docker lets you use features of your locally modified Supabase version.+To run Studio locally, you'll need to setup Docker in addition to your NextJS frontend.#### Prerequsites-First, make sure you have the Docker application installed on your device. You can download and install it from [here](https://docs.docker.com/get-docker/).+First, make sure you have the Docker installed on your device. You can download and install it from [here](https://docs.docker.com/get-docker/).-#### Getting Started+#### Get Started1. Navigate to the `docker` directory in your forked repo@@ -141,20 +133,20 @@ First, make sure you have the Docker application installed on your device. You c3. Run docker```sh- docker-compose up+ docker compose up```-This command initializes the containers specified in the docker-compose.yml file. It might take a few moments to complete, depending on your computer and internet connection.+This command initializes the containers specified in the `docker-compose.yml` file. It might take a few moments to complete, depending on your computer and internet connection.-Once the `docker-compose up` process completes, you should have your local version of Supabase up and running within Docker containers. You can access and test the features you've modified or added.+Once the `docker compose up` process completes, you should have your local version of Supabase up and running within Docker containers. You can access it at `http://localhost:8082`.Remember to keep the Docker application open as long as you're working with your local Supabase instance.## Create a pull request-After making your changes, open a pull request. Once you submit your pull request, the Supabase team will review it with you.+After making any changes, open a pull request. Once you submit your pull request, the Supabase team will review it with you.-Once your PR has been merged, you will be proudly listed as a contributor in the [contributor chart](https://github.com/supabase/supabase/graphs/contributors).+Once your PR has been merged, you will be proudly listed as a contributor in the [contributor chart](https://github.com/supabase/supabase/graphs/contributors)!---@@ -188,7 +180,7 @@ Some things to consider:## Community channels-If you are stuck somewhere or have any questions, join our [Discord Community Server](https://discord.supabase.com/) or the [Github Discussions](https://github.com/supabase/supabase/discussions). We are here to help!+If you get stuck somewhere or have any questions, join our [Discord Community Server](https://discord.supabase.com/) or the [Github Discussions](https://github.com/supabase/supabase/discussions). We are here to help!## Contributors