Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thorwebdev/everydaylytics
Deno Fresh + Supabase
https://github.com/thorwebdev/everydaylytics
authentication database deno fresh postgres supabase
Last synced: about 1 month ago
JSON representation
Deno Fresh + Supabase
- Host: GitHub
- URL: https://github.com/thorwebdev/everydaylytics
- Owner: thorwebdev
- Created: 2023-02-03T15:33:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-30T08:43:40.000Z (over 1 year ago)
- Last Synced: 2024-12-19T10:12:27.885Z (about 1 month ago)
- Topics: authentication, database, deno, fresh, postgres, supabase
- Language: TypeScript
- Homepage:
- Size: 99.6 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EveryDayLytics - A Deno Fresh + Supabase project
This project showcases how to use Supabase [Auth](https://supabase.com/auth),
[Database](https://supabase.com/database) within
[Deno Fresh](https://fresh.deno.dev/).### Auth approach
This App uses the
[`@supabase/auth-helpers-shared`](https://github.com/supabase/auth-helpers/releases/tag/%40supabase%2Fauth-helpers-shared%400.4.0)
package to faciliatet server-side auth with cookies.This works by implementing a `CookieAuthStorageAdapter` in
[/utils/supabase.ts](/utils/supabase.ts) which you can copy to your own Deno
Fresh Application to make server-side auth work.### Usage
Start the project:
```
supabase start
deno task start
```This will watch the project directory and restart as necessary.
### Generating Database Types
If you change the database schema, you will need to run this to update the
database types used with supabase-js.```bash
supabase start
supabase gen types typescript --local > types/database.types.ts
```