Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madebyfabian/zingio
A Nuxt 3, TailwindCSS, and Supabase Auth, EdgeDB Twitter Clone.
https://github.com/madebyfabian/zingio
edgedb nuxt nuxt3 supabase typescript
Last synced: 2 months ago
JSON representation
A Nuxt 3, TailwindCSS, and Supabase Auth, EdgeDB Twitter Clone.
- Host: GitHub
- URL: https://github.com/madebyfabian/zingio
- Owner: madebyfabian
- Created: 2022-11-21T23:45:57.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-27T11:28:56.000Z (about 2 years ago)
- Last Synced: 2024-12-04T20:53:38.156Z (2 months ago)
- Topics: edgedb, nuxt, nuxt3, supabase, typescript
- Language: Vue
- Homepage:
- Size: 331 KB
- Stars: 32
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zingio App
A Nuxt 3, TailwindCSS, Supabase Auth, EdgeDB Twitter Clone.
## Features
- Authentication (Password, GitHub)
- User Profiles
- Post Lists
- Creating Posts
- Post Comments
- Post Likes
- Profile Settings
- Bookmark Folders
- See [Notion Roadmap](https://madebyfabian.notion.site/zingio-Roadmap-4f80eeac03584de6afeeeccc529e1ae4) for all features.## Setup
### Installing EdgeDB CLI & TypeScript Types
- Install EdgeDB CLI locally
- after that, run `edgedb project init`
- then `npm run generate-types:edgedb`### Deploy EdgeDB
- See https://www.edgedb.com/docs/guides/deployment/digitalocean
- Create `digitalocean` Link in CLI (`` is the `edgedb://...` connection string)
```bash
edgedb instance link \
--dsn \
--trust-tls-cert \
--non-interactive \
digitalocean
```
- Run migrations
```bash
edgedb migrate --dsn --tls-security insecure
```#### Connect to edgeDB
This is not required, but to test the connection, you can run
```bash
edgedb -I digitalocean
```### Add .env
```bash
# Supabase
SUPABASE_URL="https://example.supabase.com"
SUPABASE_KEY=""# EdgeDB
EDGEDB_DSN=""
EDGEDB_CLIENT_TLS_SECURITY=insecure
```### Install dependencies
```bash
npm install
```### Run dev server
```bash
npm start
```### After changing a `dbschema/*.esdl` file
- `npm run edgedb-migrate`
## Info
`node-fetch@2` in `devDependencies` is required due to a bug where it would otherwise use `node-fetch@3` and because this is esm, it doesn't work with the `edgedb` package. See: https://discord.com/channels/841451783728529451/1046195371933696069/1046206050266787911