caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

40 lines
1.2 KiB
Markdown

# api
One function to rule them all, one docker image to bind them
## Setup
You must have set up the `gcloud` cli following the [functions/README](../functions/README.md#installing-for-local-development).
## Test
### Mac/Linux
In root directory `./dev.sh [dev|prod]` will run the api with hot reload, along with all the other backend and web code.
### Windows
Run `.\dev-windows.ps1` in this directory to start the API server with hot reload on port 8088.
In a separate terminal, run the frontend:
```powershell
cd web
yarn dev:local
```
## Deploy
Run `./deploy-api.sh [dev|prod]` in this directory
## Secrets management
Secrets are strings that shouldn't be checked into Git (eg API keys, passwords).
Add or remove keys using [Google Secret Manager](https://console.cloud.google.com/security/secret-manager), which provides them as environment variables to functions that require them.
[Dev secrets manager](https://console.cloud.google.com/security/secret-manager?project=dev-oracle)
[Prod secrets manager](https://console.cloud.google.com/security/secret-manager?project=oracle)
Secondly, please update the list of secret keys at `backend/shared/src/secrets.ts`. Only these keys are provided to functions, scripts, and the api.