Skip to content

Commit

Permalink
docs: note db schema required in api readme
Browse files Browse the repository at this point in the history
...and tweak website README to note that you are using a mock API
  • Loading branch information
joshJarr authored May 30, 2022
1 parent 76e8e77 commit fcfec65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions packages/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,26 @@ Kill the process to stop miniflare, then run `npm run stop` to shutdown the clus
npm run stop
```

You may need to make sure the underlying DB is populated with the required tables.
Please follow the instructions in the [Populate Database](../../packages/db/README.md#2-populate-database) section in the db package README.

## Setting up a cloudflare worker
While in most cases the [Getting Started](#getting-started) section is enough to develop locally, if you want to test and preview you worker on Cloudflare's infrastructure here's the instructions to setup your worker and environment.
While in most cases the [Getting Started](#getting-started) section is enough to develop locally, if you want to test and preview you worker on Cloudflare's infrastructure here's the instructions to setup your worker and environment.

If you want more in depth information please look at [Cloudflare Get Started guide](https://developers.cloudflare.com/workers/get-started/guide#1-sign-up-for-a-workers-account).
If you want more in depth information please look at [Cloudflare Get Started guide](https://developers.cloudflare.com/workers/get-started/guide#1-sign-up-for-a-workers-account).

The following instructions assume that you did go through the Getting started section.

### 1. Sign up for a Workers account
Before you can start publishing your Workers on your own domain or a free *.workers.dev subdomain, you must sign up for a Cloudflare Workers account
### 2. Install the Workers CLI
Install `wrangler` cli on your local machine
```bash
```bash
npm install -g @cloudflare/wrangler
```
### 3. Configure the Workers CLI
With installation complete, wrangler will need access to a Cloudflare OAuth token to manage Workers resources on your behalf.
```bash
```bash
wrangler login
```
Open the browser, log into your account, and select Allow.
Expand Down
2 changes: 1 addition & 1 deletion packages/website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ NEXT_PUBLIC_API=http://127.0.0.1:8787
NEXT_PUBLIC_MAGIC=<magic test mode publishable key>
```

for local debugging API:
To hit the local mock API:

```ini
NEXT_PUBLIC_ENV=dev
Expand Down

0 comments on commit fcfec65

Please sign in to comment.