No description
- Rust 45.6%
- Svelte 32.8%
- TypeScript 16.2%
- CSS 2.7%
- Dockerfile 1.1%
- Other 1.6%
|
All checks were successful
/ build-and-publish (push) Successful in 1m43s
Reviewed-on: #73 |
||
|---|---|---|
| .forgejo/workflows | ||
| backend | ||
| frontend | ||
| .dockerignore | ||
| .envrc | ||
| .gitignore | ||
| devenv.lock | ||
| devenv.nix | ||
| devenv.yaml | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
WRB App
Development
0. Requirements
- Postgres database
- Rust toolchain
- PNPM
1. Environment variables
Backend (backend/.env)
DATABASE_URL- location of database
- Ex:
postgres://wrbapp:password@localhost/wrbapp
GOOGLE_CLIENT_ID- Google OAuth client id
- Create at https://console.cloud.google.com/auth/clients
GOOGLE_CLIENT_SECRET- Google OAuth client secret
PRIVATE_VAPID_KEY- Private vapid key for push notifications
- Generate using:
pnpm install -g web-push web-push generate-vapid-keys
PUBLIC_VAPID_KEY- Public vapid key for push notifications
- See previous env for generating
UMAMI_WEBSITE_ID(optional)- Website id for umami analytics
2. Initialize database
cd backend
sqlx migrate run
3. Running
- Database
- Backend
cd backend cargo run - Frontend
cd frontend pnpm install pnpm run dev