Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rauchg/how-is-this-not-illegal
A demo of using RSC and Vercel Postgres, legally
https://github.com/rauchg/how-is-this-not-illegal
Last synced: 3 days ago
JSON representation
A demo of using RSC and Vercel Postgres, legally
- Host: GitHub
- URL: https://github.com/rauchg/how-is-this-not-illegal
- Owner: rauchg
- Created: 2023-05-02T14:45:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-12T01:38:13.000Z (about 1 year ago)
- Last Synced: 2024-04-15T12:16:48.514Z (7 months ago)
- Language: JavaScript
- Homepage: https://how-is-this-not-illegal.vercel.app
- Size: 180 KB
- Stars: 575
- Watchers: 4
- Forks: 23
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How is this not illegal
This beautiful tweet by Dan Abramov [brought to life](https://github.com/rauchg/how-is-this-not-illegal/blob/main/app/page.js#L5).
## Setting it up
1. Create a Vercel Postgres database and link it to your project
2. Go to its settings and copy the `psql` command
3. Add `-f sql/init.sql` like so to populate the database with some data:
```sh
psql "postgres://{user}:{password}@{name}.{location}.postgres.vercel-storage.com:5432/verceldb" -f init.sql
```