Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Boiler Plate] Add documentation in devtodollars docs #76

Open
11 tasks
Amiralizim opened this issue Jul 8, 2024 · 0 comments
Open
11 tasks

[Boiler Plate] Add documentation in devtodollars docs #76

Amiralizim opened this issue Jul 8, 2024 · 0 comments
Assignees

Comments

@Amiralizim
Copy link
Contributor

Amiralizim commented Jul 8, 2024

  • Put the following steps inside the documentation
    Steps to set up Supabase on ubuntu:
  1. Navigate to https://github.com/supabase/cli/release
  2. Find the release with the green latest tag on it, the release might located in the later pages.
  3. Download the correct package based on your processor type, and favorite package manager, for example I have dpkg package and an x86 architecture on my processor, so I downloaded supaase__linux_amd64.deb
  4. Run one of the following commands based on the type of package downloaded:
    sudo apk add --allow-untrusted <...>.apk
    sudo dpkg -i <...>.deb
    sudo rpm -i <...>.rpm
  • Add to documentation how to stop docker containers if you shut off the computer with forgeting to do supabase down

  • Add how to get the types for supabase tables to put into types_db.ts:

  • npx supabase gen types typescript --project-id "$PROJECT_REF" --schema public

  • npx supabase gen types typescript --local --schema public > ./nextjs/types_db.ts

  • Add how to add restriction policies to the bucket and user tables, specifically storage buckets

  • Database migration problems:

If the local database is out of sync with the global database, do the following steps for migration syncing:
supabase migrations list
supabase migration repair 20230103054303 --status reverted
supabase db reset

  • Local database setup:
  1. change the local .env file copy from .env.local.example from the docs correction.
  2. Get the Anon key info of the local instance with npx supabase status
  • Getting the storage info inside the seed file:

  • supabase db dump --data-only --schema storage -f ./supabase/seed.sql

  • Add how to receive the emails localy:

  • emails get added on inbucket and does not actually get sent to your email, you can find inbucket at http://localhost:54324/monitor with default settings

  • settings.json add in .vsCode for deno setup

  •   "deno.enablePaths": [
          "supabase/functions"
      ],
      "dino.lint": true,
      "deno.unstable": true,
      "[typescript]": {
          "editor.defaultFormatter": "denoland.vscode-deno"
      },
    

}```

  • Add how to connect local edge functions to stripe when developing
  • Update the deployment functions stuff to inlcude the import map: ```supabase functions deploy --import-map ./functions/deno.json
@Amiralizim Amiralizim self-assigned this Jul 8, 2024
@Amiralizim Amiralizim changed the title [Boiler Plate] Add documentation for ubuntu in the docs [Boiler Plate] Add documentation in devtodollars docs Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant