Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add "yarn serve-dev" to README #374

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ These links explain the structure and key abstractions of our codebase. It's a g

- GraphQL online playground: https://graphiql-online.com/

- Bypassing auth when developing locally

Start up your local server with `yarn serve-dev` (instead of `yarn serve`)
```bash
# Run this in open-tacos project
yarn serve-dev
```

This allows the current user to run any `Query` or `Mutation` (irrespective of the current user’s UUID)

(How it works: `auth/middleware.ts` and `auth/permissions.ts` are conditionally swapped out on server initialization (`server.ts`), based on whether the env var `LOCAL_DEV_BYPASS_AUTH` is set)

- Full stack development

Connect your [frontend](https://github.com/OpenBeta/open-tacos) dev env to this local server
Expand Down
Loading