Files
glitch_automata_lab/README.md
T

54 lines
1015 B
Markdown
Raw Normal View History

2026-07-01 12:10:12 +02:00
# CA Lab Studio
This folder contains the CA Lab Studio application: an Express API, Postgres-backed preset/deck data model, React admin interface, and viewer/recorder routes.
The original embeddable GlitchComponent has been moved to the sibling folder:
```txt
/Users/jenstandstad/Projects/glitch-components/glitch_voxel_automata
```
## Run Locally
Start the database:
```bash
2026-07-06 13:11:48 +02:00
docker compose up -d postgres
```
Create `.env` from the local example:
```bash
cp .env.example .env
2026-07-01 12:10:12 +02:00
```
Run migrations:
```bash
2026-07-06 13:11:48 +02:00
npm run migrate
2026-07-01 12:10:12 +02:00
```
Start the API:
```bash
2026-07-06 13:11:48 +02:00
npm run dev
2026-07-01 12:10:12 +02:00
```
2026-07-06 13:11:48 +02:00
In another terminal, start only the admin UI if needed:
2026-07-01 12:10:12 +02:00
```bash
npm run admin:dev
```
Open:
```txt
http://localhost:5174/admin/
```
## Deployment Note
Deploy this app, not the sibling GlitchComponent package. See [DEPLOY.md](/Users/jenstandstad/Projects/glitch-components/glitch_voxel_automata_lab/DEPLOY.md).
The production build compiles the Express API to `backend/dist` and emits the admin/viewer app to `backend/public/admin`.