Giter VIP home page Giter VIP logo

giessdenkiez-de-supabase's Introduction

All Contributors

This repo is deprecated and will be archived. All Supabase config for giessdenkiez.de is now located in the giessdenkiez-de-postgres-api repository.

Giessdenkiez.de Supabase

Running the giessdenkiez.de stack on supabase. WIP please ignore.

Prerequisites

  • Supabase account
  • Docker
  • Supabase CLI installed

Installation

  • Clone this repo
  • install dependencies with npm ci
  • Login into supabase with supabase login

Usage or Deployment

  • Create a project on supabase.com
  • Configure your GitHub actions to deploy all migrations to staging and production. See .github/workflows/deploy-to-supabase-staging.yml and .github/workflows/deploy-to-supabase-production.yml for an example. We are using actions environments to deploy to different environments. You can read more about it here: https://docs.github.com/en/actions/reference/environments.
    • Needed variables are:
      • DB_PASSWORD
      • PROJECT_ID
      • SUPABASE_ACCESS_TOKEN
  • (Not recommended but possible) Link your local project directly to the remote supabase link --project-ref <YOUR PROJECT REF> (will ask you for your database password from the creation process)
  • (Not recommended but possible) Push your local state directly to your remote project supabase db push (will ask you for your database password from the creation process)

Radolan Harvester

if you want to use the DWD Radolan harvester you need to prepare some data in your database

  • Update the table radolan_harvester with a time range for the last 30 days
INSERT INTO "public"."radolan_harvester" ("id", "collection_date", "start_date", "end_date")
	VALUES (1, (
			SELECT
				CURRENT_DATE - INTEGER '1' AS yesterday_date),
		(
			SELECT
				(
					SELECT
						CURRENT_DATE - INTEGER '31')::timestamp + '00:50:00'),
				(
					SELECT
						(
							SELECT
								CURRENT_DATE - INTEGER '1')::timestamp + '23:50:00'));

This process is actually a little blackbox we need to solve.

Development

  • Run supabase start to start the supabase stack
  • Run supabase stop to stop the supabase stack (all changes not included in a migration will be lost)
  • make changes to your db using sql and run supabase db diff --file <MIGRATION FILE NAME> --schema public --use-migra to create migrations
  • Run supabase gen types typescript --local > ./scripts/db-types.ts to generate typescript types for your db

Tests

  • Run npm test to run the tests

Contributing

Before you create a pull request, write an issue so we can discuss your changes.

Contributors

Thanks goes to these wonderful people (emoji key):

Fabian Morón Zirfas
Fabian Morón Zirfas

📖 💻 🚇
Add your contributions

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

Made by

A project by

Supported by

Related Projects


giessdenkiez-de-supabase's People

Contributors

ff6347 avatar

Watchers

 avatar Ingo Hinterding avatar Dennis Ostendorf avatar  avatar  avatar

giessdenkiez-de-supabase's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update devdependencies-non-major (@saithodev/semantic-release-backmerge, @supabase/supabase-js, @technologiestiftung/semantic-release-config, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, eslint-config-prettier, just-install, postgres, tsx, typescript)

Detected dependencies

github-actions
.github/workflows/deploy-to-supabase-production.yml
  • actions/checkout v3
  • supabase/setup-cli v1
.github/workflows/deploy-to-supabase-staging.yml
  • actions/checkout v3
  • supabase/setup-cli v1
.github/workflows/test-and-release.yml
  • actions/checkout v3
  • actions/setup-node v3
  • supabase/setup-cli v1
  • mxschmitt/action-tmate v3
  • actions/checkout v3
  • actions/setup-node v3
  • cycjimmy/semantic-release-action v2
npm
package.json
  • @saithodev/semantic-release-backmerge 2.1.2
  • @supabase/supabase-js 2.0.5
  • @technologiestiftung/semantic-release-config 1.1.0
  • @types/node 18.11.9
  • @typescript-eslint/eslint-plugin 5.42.0
  • @typescript-eslint/parser 5.42.0
  • dotenv 16.0.3
  • eslint 8.27.0
  • eslint-config-prettier 8.5.0
  • eslint-plugin-prettier 4.2.1
  • just-install 1.0.8
  • postgres 3.3.1
  • tsx 3.11.0
  • typescript 4.8.4
  • node >=18.0.0
nvm
.nvmrc
  • node 18.13.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.