Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
SUPABASE_URL="https://yourhost.supabase.co"
SUPABASE_KEY="your-secret-key"
SUPABASE_SERVICE_KEY="your-service-key"
SPOTIFY_CLIENT_ID="your-client-id"
SPOTIFY_CLIENT_SECRET="your-client-secret"
17 changes: 17 additions & 0 deletions DB/playlists.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
create table playlists
(
id text not null primary key,
"spotifyId" text not null,
name text not null,
cover text,
enabled boolean default false not null
);

CREATE UNIQUE INDEX enabled_playlist_unique_name ON playlists (name) WHERE enabled = true;

create table categories
(
name text not null,
"playlistId" text not null references playlists,
primary key (name, "playlistId")
);
37 changes: 3 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,23 @@ Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introdu
Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build
```

Locally preview production build:

## TSDocs
```bash
# npm
npm run preview
npm run docs:serve
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.

## Required Environment Variables
Check `.env.demo` for the required environment variables.
Check `.env.example` for the required environment variables.
8 changes: 7 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ export default defineNuxtConfig({
},
cookieOptions: {
secure: false, //TODO: set to true when deploying
},
clientOptions: {
db: {
schema: 'beatbuzzer',
}
}
},
devServer: {
host: '0.0.0.0'
}
},
ssr: false
})
Loading
Loading