49 lines
1.1 KiB
Markdown
49 lines
1.1 KiB
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
|
||
|
|
cd backend
|
||
|
|
docker compose up -d
|
||
|
|
```
|
||
|
|
|
||
|
|
Run migrations:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
DATABASE_URL=postgres://ca_studio:ca_studio@localhost:54329/ca_studio_test npm run migrate
|
||
|
|
```
|
||
|
|
|
||
|
|
Start the API:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
DATABASE_URL=postgres://ca_studio:ca_studio@localhost:54329/ca_studio_test npm run dev
|
||
|
|
```
|
||
|
|
|
||
|
|
In another terminal, start the admin UI:
|
||
|
|
|
||
|
|
```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`.
|