Skip to content

Commit 0b28b7d

Browse files
committed
merge readmes
1 parent fcc4e9e commit 0b28b7d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

apps/svelte.dev/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ The tutorial, blog and examples are maintained within this repository.
1414

1515
## Development
1616

17+
### Database setup
18+
19+
Login to [Supabase](https://supabase.com) and create a database. Once done, you should be on your database's dashboard. Duplicate the `.env.example` file and rename it to `.env.local`, and set these environment variables:
20+
21+
- `SUPABASE_URL`: The config URL
22+
- `SUPABASE_KEY`: The public API key
23+
24+
Then, navigate to your database's "SQL Editor", click on "New query", and paste in [setup.sql](./setup.sql). Run this SQL to seed the database and you're good to go.
25+
1726
### Tutorial
1827

1928
The tutorial consists of two technically different parts: The Svelte tutorial and the SvelteKit tutorial. The SvelteKit tutorial uses [WebContainers](https://webcontainers.io/) under the hood in order to boot up a Node runtime in the browser. The Svelte tutorial uses Rollup in a web worker - it does not use WebContainers because a simple web worker is both faster and more reliable (there are known issues with iOS mobile).

apps/svelte.dev/db/README.md

-8
This file was deleted.

0 commit comments

Comments
 (0)