enBloc-org / kindly

GNU General Public License v3.0
12 stars 16 forks source link

#216/supabase cli usage #259

Closed mnixo closed 1 week ago

mnixo commented 2 weeks ago

Description

Closes #216

Files changed

Changes to Documentation

Unifies and simplifies the existing documentation as there is no longer need for:

Tests

Manual tests were performed for different scenarios that are possible after this PR is merged (assumes that npm install is executed beforehand). Supabase and app are started and work as expected:

  1. Without any previous data.
    • Will be the case for fresh checkouts of the repository.
    • Validated successfully.
  2. With existing data, created by a previous supabase instance, installed separately with brew.
    • Will be the case for the current contributors using macOS/Linux.
    • Validated successfully. (in my case the version difference was between 1.167.4 and 1.176.10)
  3. With existing data, created by a previous supabase instance, installed separately with npm.
    • Will be the case for the current contributors using Windows.
    • Validated successfully. (in my case the version difference was between 1.172.2 and 1.176.10)

Post-merge instructions

  1. Pull the new changes.
  2. Install dependencies with npm install.
  3. Verify that the supabase CLI is on version 1.176.10 or newer, with npx supabase -v.
    • If it isn't, try removing the node_modules directory (rm -rf node_modules) and install the dependencies again.
  4. Start supabase with npx supabase start.
    • If there are issues, it's possible that the existing data is causing problems. Go to Docker Desktop > Dashboard > Volumes > Find and Delete all supabase_* volumes and try starting supabase again. Note: Be mindful that this will DELETE all data that you might have added locally (users, items, conversations, etc.). Use with care.

After this PR is merged and the dependencies are freshly installed, it would be also a good idea to remove other globally installed supabase CLIs, avoiding possible mistakes.

netlify[bot] commented 2 weeks ago

Deploy request for cool-creponne-3e1272 pending review.

Visit the deploys page to approve it

Name Link
Latest commit 0b55731a3d92068da73de3a4a23bcde1f402e18a