54 lines
1015 B
Markdown
54 lines
1015 B
Markdown
# 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
|
|
docker compose up -d postgres
|
|
```
|
|
|
|
Create `.env` from the local example:
|
|
|
|
```bash
|
|
cp .env.example .env
|
|
```
|
|
|
|
Run migrations:
|
|
|
|
```bash
|
|
npm run migrate
|
|
```
|
|
|
|
Start the API:
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
In another terminal, start only the admin UI if needed:
|
|
|
|
```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`.
|