Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lauragift21 committed Mar 14, 2024
1 parent 4394f02 commit 719b100
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ wrangler.toml
package-lock.json
yarn.lock
pnpm-lock.yaml
bun.lockb
bun.lockb
todo.md
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ To get a local copy up and running, follow these simple steps.
```sh
npm run dev
```
4. Copy the wrangler config file
```sh
cp wrangler.example.toml wrangler.toml
```
5. Create a DB with Wrangler and copy config to wrangler.toml
```
npx wrangler d1 create <DATABASE_NAME>
```
6. Seed local DB with data
```sh
npx wrangler d1 execute <DATABASE_NAME> --local --file=./schema.sql
```
7. Create a bucket with Wrangler and copy config to wrangler.toml
```
npx wrangler r2 bucket create <NAME>
```

### Deployment

Expand Down
Empty file added app/routes/users/[id].tsx
Empty file.
6 changes: 3 additions & 3 deletions wrangler.example.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name = "staff-directory"
compatibility_date = "2023-12-01"

# [[r2_buckets]]
# binding = "MY_BUCKET"
# bucket_name = "my-bucket"
[[r2_buckets]]
binding = "MY_BUCKET"
bucket_name = ""

[[d1_databases]]
binding = "DB"
Expand Down

0 comments on commit 719b100

Please sign in to comment.