mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-15 17:19:10 +00:00
big overhaul (#474)
* miniflare init * feat(api): add tests * chore: more tests, almost 100% * add sessions/state spec * add majority of routes and datapaths, start on interactions * nevermind, no interactions * nevermind x2, tweetnacl is bad but SubtleCrypto has what we need apparently * simplify interactions verify * add brute force interactions tests * every primary path API route is refactored! * automatically import from legacy, or die trying. * check that we only fetch legacy once, ever * remove old-src, same some historic pieces * remove interactions & worker-utils package, update misc/types * update some packages we don't need specific pinning for anymore * update web references to API routes since they all changed * fix all linting issues, upgrade most packages * fix tests, divorce enzyme where-ever possible * update web, fix integration issues * pre-build api * fix tests * move api pretest to api package.json instead of CI * remove interactions from terraform, fix deploy side configs * update to tf 1.1.4 * prevent double writes to worker in GCS, port to newer GCP auth workflow * fix api.tf var refs, upgrade node action * change to curl-based script upload for worker script due to terraform provider limitations * oh no, cloudflare freaked out :(
This commit is contained in:
parent
b644a38aa7
commit
3291f9aacc
183 changed files with 9853 additions and 9924 deletions
14
README.md
14
README.md
|
@ -41,12 +41,14 @@ This is the fastest way to start. You must be using MacOS or Linux (WSL2 is ok!)
|
|||
- Setup `.env` using [`.env.example`][envexample] as a template and guide.
|
||||
- When setting up your Discord Application, be sure to set `http://localhost:6609/login-callback` as the OAuth2 callback URL.
|
||||
- Run: `yarn install`
|
||||
- Run both: `yarn start`
|
||||
- Run: `yarn start`
|
||||
- This starts the Web UI, Storybook, and API servers in hot-reload dev/emulation mode. All changes to TS/TSX files should be properly captured and reloaded for you!
|
||||
- Develop you a Roleypoly!
|
||||
|
||||
#### Option 3 🐄🤠: Wrangler (No emulation)
|
||||
|
||||
**Outdated. This won't work, but could give you an idea of what to do.**
|
||||
|
||||
This is probably extremely painful and requires you to have a Cloudflare account.
|
||||
|
||||
- With pre-requisites:
|
||||
|
@ -93,26 +95,26 @@ Run:
|
|||
|
||||
- `yarn` to install deps
|
||||
- `yarn start:design-system` to open storybook
|
||||
- `yarn test` to test
|
||||
- `yarn test:design-system` to test
|
||||
|
||||
### Developing Web UI
|
||||
|
||||
For working with the Next.js frontend components, use the below steps as reference. Code lives in `src/pages` among elsewhere.
|
||||
For working with the Next.js frontend components, use the below steps as reference. Code lives in `src/web` among elsewhere.
|
||||
|
||||
Run:
|
||||
|
||||
- `yarn` to install deps
|
||||
- `yarn start:web` to run Next.js dev server
|
||||
- `yarn test` to test
|
||||
- `yarn test:web` to test
|
||||
|
||||
### Developing API Components
|
||||
|
||||
For working with the API, use the below steps as reference. Code lives in `src/backend-worker`.
|
||||
For working with the API, use the below steps as reference. Code lives in `src/api`.
|
||||
|
||||
Run:
|
||||
|
||||
- `yarn` to install deps
|
||||
- `yarn start:api` to start an emulated worker
|
||||
- `yarn test` to test
|
||||
- `yarn test:api` to test
|
||||
|
||||
[envexample]: .env.example
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue