An open API service indexing awesome lists of open source software.

https://github.com/0-vortex/open-sauced-supabase-cron-test

Experimenting with supabase local development for hot.opensauced.pizza
https://github.com/0-vortex/open-sauced-supabase-cron-test

Last synced: about 1 year ago
JSON representation

Experimenting with supabase local development for hot.opensauced.pizza

Awesome Lists containing this project

README

          




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](https://supabase.com/docs/guides/local-development) is start the studio locally at [localhost:54321](http://localhost:54321):

```shell
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:

```shell
npm run db:changes
```

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

```shell
npm run db:commit add_table_name
```

### Test changes

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

```shell
npm run db:reset
```

### Push changes

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

```shell
npm run db:push
```

# πŸ”‘ Supabase structure

Click the image to see the schema diagram full documentation.

[![er](./supabase/diagrams/schema.svg)](./supabase/diagrams/README.md)

# 🀝 Contributing

We encourage you to contribute to Open Sauced! Please check out the [Contributing guide](https://docs.opensauced.pizza/contributing/introduction-to-contributing/) for guidelines about how to proceed.

## πŸ• Community

Got Questions? Join the conversation in our [Discord](https://discord.gg/U2peSNf23P).
Find Open Sauced videos and release overviews on our [YouTube Channel](https://www.youtube.com/channel/UCklWxKrTti61ZCROE1e5-MQ).

## 🎦 Repository Visualization

[![Visualization of this repository](./public/diagram.svg)
](./src)

## βš–οΈ LICENSE

MIT Β© [Open Sauced](LICENSE)