Skip to content

Experimenting with supabase local development for hot.opensauced.pizza

License

Notifications You must be signed in to change notification settings

0-vortex/open-sauced-supabase-cron-test

Repository files navigation


Open Sauced

🍕 Open Sauced Populate Supabase Test🍕

The path to your next Open Source contribution

GitHub code size in bytes GitHub commit activity GitHub issues GitHub Release Discord Twitter

📖 Prerequisites

In order to run the project we need the following software binaries installed on our development machines:

  • node>=16.7.0
  • npm>=8.0.0
  • docker>=20.10.12
  • supabase>=0.18.0

🔑 Database commands

Starting the Supabase Studio

First thing we have to do for local development is start the studio locally at localhost:54321:

npm run db:start

Make changes

If we are adding a new table structure, first do it visually in the Supabase Studio and test locally.

Check the migration difference with the following command:

npm run db:changes

If everything is fine we can run the following command to apply the changes to the database:

npm run db:commit add_table_name

Test changes

Simplest way to test the migrations are working is to reset the local database:

npm run db:reset

Push changes

If everything is fine we can push the changes to the remote database:

npm run db:push

🔑 Supabase structure

Click the image to see the schema diagram full documentation.

er

🤝 Contributing

We encourage you to contribute to Open Sauced! Please check out the Contributing guide for guidelines about how to proceed.

🍕 Community

Got Questions? Join the conversation in our Discord.
Find Open Sauced videos and release overviews on our YouTube Channel.

🎦 Repository Visualization

Visualization of this repository

⚖️ LICENSE

MIT © Open Sauced

About

Experimenting with supabase local development for hot.opensauced.pizza

Resources

License

Stars

Watchers

Forks