From 58d0b83d7d7e747870878fa412cdcbcc3e29f5cd Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Wed, 15 Mar 2023 16:13:09 +0800 Subject: [PATCH] Update local development guide --- .../pages/guides/cli/local-development.mdx | 103 +++++++++++------- 1 file changed, 66 insertions(+), 37 deletions(-) diff --git a/apps/docs/pages/guides/cli/local-development.mdx b/apps/docs/pages/guides/cli/local-development.mdx index 0514e6b108a..72850146edc 100644 --- a/apps/docs/pages/guides/cli/local-development.mdx +++ b/apps/docs/pages/guides/cli/local-development.mdx @@ -7,7 +7,23 @@ export const meta = { video: 'https://www.youtube.com/v/vyHyYpvjaks', } -Learn how to use the Supabase CLI to develop your project locally and deploy to the Supabase Platform. +Once you've moved beyond the initial "clicking around" stage and are ready to start building your project, we suggest following a workflow that involves working locally and deploying your changes to a linked project on the [Supabase Platform](https://app.supabase.io/). + +Doing things directly on the platform via the [Dashboard](https://app.supabase.io/) is fine when you're getting started, but it's a good idea to move to a proper local workflow before you get too far. We'll get into all of the details, but the gist is that you'll work locally, generate migrations as you change your tables, and apply those migrations to a linked project on the [Platform](https://app.supabase.io/). + +## Why develop locally? + +The Dashboard provides a wide range of features for setting up your project: creating tables, adding columns, changing existing columns, creating views, and more. Given all of the Dashboard's capabilities, you might question the need to work locally. Here's a few advantages to working this way: + +1. **Faster Development**: Developing your project locally allows you to work without any network latency or internet disruptions. + +2. **Easier Collaboration**: Developing your project locally can make it easier to collaborate with others on the same project. + +3. **Cost-Effective**: While Supabase provides a generous free tier and gives you two free projects to get started, you may be working on many projects at once. Developing locally means that you can spin up unlimited projects locally and only link them with live projects when you're ready to launch. + +4. **Configuration in code**: If you directly change your tables via the Dashboard, none of that is captured in code. If you follow these local development practices, you'll store all of your table schemas in code. + +5. **Work offline**: Need to work from a train? A plain? An automobile? No problem. Developing your project locally allows you to work offline.