docs: Basic README update

This commit is contained in:
Roman Godmaire 2023-11-19 20:23:17 -05:00
parent 489a637506
commit 11b9280a51

View file

@ -1,38 +1,39 @@
# create-svelte
# Larson
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
A way for music producers to get feedback on different versions of their music tracks.
## Creating a project
## Deploying
If you're seeing this, you've probably already done this step. Congrats!
```bash
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
```
TODO.
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
1. Setup a `.env` file using the following template:
```env
DATABASE_URL="file:dev.db"
S3_ENDPOINT="http://localhost:4566"
S3_BUCKET="larsen-dev"
```
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:
```bash
npm run dev
pnpm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
pnpm run dev -- --open
```
## Building
To create a production version of your app:
To create a production version of the app:
```bash
npm run build
pnpm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
You can preview the production build with `pnpm run preview`.