Fixes to language translation etc
This commit is contained in:
59
README.md
59
README.md
@@ -1,32 +1,61 @@
|
||||
# Root
|
||||
|
||||
Team collaboration platform.
|
||||
Team collaboration platform built with SvelteKit, Supabase, and TailwindCSS.
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
# Install
|
||||
npm install
|
||||
|
||||
# Set up environment
|
||||
cp .env.example .env
|
||||
# Fill in your Supabase credentials in .env
|
||||
|
||||
# Run migrations in Supabase Dashboard > SQL Editor
|
||||
# Copy & run each file in supabase/migrations/ in order (001, 002, 003...)
|
||||
|
||||
# Start dev server
|
||||
cp .env.example .env # Fill in your credentials
|
||||
npm run dev
|
||||
```
|
||||
|
||||
Open http://localhost:5173
|
||||
|
||||
## Docker
|
||||
## Environment Variables
|
||||
|
||||
| Variable | Required | Description |
|
||||
|---|---|---|
|
||||
| `PUBLIC_SUPABASE_URL` | Yes | Supabase project URL |
|
||||
| `PUBLIC_SUPABASE_ANON_KEY` | Yes | Supabase anonymous key |
|
||||
| `GOOGLE_API_KEY` | No | Google Maps API key (for map module) |
|
||||
| `GOOGLE_SERVICE_ACCOUNT_KEY` | No | Google Calendar push (JSON key) |
|
||||
| `MATRIX_HOMESERVER_URL` | No | Matrix/Synapse homeserver URL |
|
||||
| `MATRIX_ADMIN_TOKEN` | No | Synapse admin token for auto-provisioning |
|
||||
| `RESEND_API_KEY` | No | Resend.com API key for invite emails |
|
||||
| `RESEND_FROM_EMAIL` | No | Verified sender email (e.g. `noreply@yourdomain.com`) |
|
||||
|
||||
## Database
|
||||
|
||||
Migrations are in `supabase/migrations/`. Push them with:
|
||||
|
||||
```bash
|
||||
# Production
|
||||
docker-compose up app
|
||||
npm run db:push # Push pending migrations
|
||||
npm run db:types # Regenerate TypeScript types
|
||||
npm run db:migrate # Both in one step
|
||||
```
|
||||
|
||||
# Development
|
||||
## Production Deployment
|
||||
|
||||
### Docker
|
||||
|
||||
```bash
|
||||
docker-compose up -d app
|
||||
```
|
||||
|
||||
The app runs on port 3000 with a `/health` endpoint for monitoring.
|
||||
|
||||
### Manual
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
node build
|
||||
```
|
||||
|
||||
Set `PORT` (default 3000), `HOST` (default 0.0.0.0), and `NODE_ENV=production`.
|
||||
|
||||
### Development (Docker)
|
||||
|
||||
```bash
|
||||
docker-compose up dev
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user