Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Commit be34d7d

Browse files
Setup first pass (#10)
* update readme and add example .env * better spacing on invlite modal
1 parent 6c1ceea commit be34d7d

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# URL to sb file
2+
DATABASE_URL=file:./dev.db
3+
4+
# Secret to use for JWT signing, generate this yourself
5+
AUTH_SECRET=""
6+
7+
# Google OAuth details for login
8+
GOOGLE_ID=""
9+
GOOGLE_SECRET=""
10+
11+
# Spotify credentials for album search
12+
SPOTIFY_CLIENT_ID=""
13+
SPOTIFY_CLIENT_SECRET=""

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
# create-svelte
1+
# Sprintna.me
22

33
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
44

5-
## Creating a project
5+
## Setup
66

7-
If you're seeing this, you've probably already done this step. Congrats!
7+
1. Create a `.env` (you can use `cp .env.example .env` and fill in the blanks).
8+
2. Setup DB: `npx prisma migrate reset`
9+
3. Get Google OAuth credentials and set the callback URL to `http://localhost:5173/auth/callback/google`
10+
4. Get Spotify developer credentials, set callback to `http://localhost:5173`
11+
5. `npm run dev`
812

9-
```bash
10-
# create a new project in the current directory
11-
npm create svelte@latest
12-
13-
# create a new project in my-app
14-
npm create svelte@latest my-app
15-
```
13+
_If you see a connection error, run `npm run prisma:generate` to regenerate_
1614

1715
## Developing
1816

src/routes/team/[id]/InviteModal.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919

2020
<Modal id="invite-team-modal" buttonVariant="success" bind:this={modal}>
2121
<svelte:fragment slot="modal" let:toggle>
22-
<h3 class="text-lg font-bold mb-2">Share this link to invite!</h3>
23-
<TextInput value={link} disabled />
24-
<Button on:click={copy}>Copy</Button>
22+
<div class="space-y-2">
23+
<h3 class="text-lg font-bold">Share this link to invite!</h3>
24+
<TextInput value={link} disabled />
25+
<Button on:click={copy}>Copy</Button>
26+
</div>
2527
</svelte:fragment>
2628
</Modal>

0 commit comments

Comments
 (0)