2023-11-20 01:23:17 +00:00
|
|
|
# Larson
|
2023-11-18 20:38:51 +00:00
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
A way for music producers to get feedback on different versions of their music tracks.
|
2023-11-18 20:38:51 +00:00
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
## Deploying
|
2023-11-18 20:38:51 +00:00
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
TODO.
|
2023-11-18 20:38:51 +00:00
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
## Developing
|
2023-11-18 20:38:51 +00:00
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
1. Setup a `.env` file using the following template:
|
2023-11-18 20:38:51 +00:00
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
```env
|
|
|
|
DATABASE_URL="file:dev.db"
|
|
|
|
S3_ENDPOINT="http://localhost:4566"
|
|
|
|
S3_BUCKET="larsen-dev"
|
|
|
|
```
|
2023-11-18 20:38:51 +00:00
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
2. Run `pnpm install`
|
|
|
|
3. Run `pnpx prisma db push`
|
|
|
|
4. Setup an S3-compatible service for audio file storage
|
|
|
|
5. Start the development server:
|
2023-11-18 20:38:51 +00:00
|
|
|
|
|
|
|
```bash
|
2023-11-20 01:23:17 +00:00
|
|
|
pnpm run dev
|
2023-11-18 20:38:51 +00:00
|
|
|
|
|
|
|
# or start the server and open the app in a new browser tab
|
2023-11-20 01:23:17 +00:00
|
|
|
pnpm run dev -- --open
|
2023-11-18 20:38:51 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
To create a production version of the app:
|
2023-11-18 20:38:51 +00:00
|
|
|
|
|
|
|
```bash
|
2023-11-20 01:23:17 +00:00
|
|
|
pnpm run build
|
2023-11-18 20:38:51 +00:00
|
|
|
```
|
|
|
|
|
2023-11-20 01:23:17 +00:00
|
|
|
You can preview the production build with `pnpm run preview`.
|