Adding the lab project
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# 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`.
|
||||
Reference in New Issue
Block a user