Skip to content

Commit

Permalink
Setup first pass (#10)
Browse files Browse the repository at this point in the history
* update readme and add example .env

* better spacing on invlite modal
  • Loading branch information
Darth-Knoppix committed Jun 27, 2023
1 parent 6c1ceea commit be34d7d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
13 changes: 13 additions & 0 deletions .env.example
@@ -0,0 +1,13 @@
# URL to sb file
DATABASE_URL=file:./dev.db

# Secret to use for JWT signing, generate this yourself
AUTH_SECRET=""

# Google OAuth details for login
GOOGLE_ID=""
GOOGLE_SECRET=""

# Spotify credentials for album search
SPOTIFY_CLIENT_ID=""
SPOTIFY_CLIENT_SECRET=""
18 changes: 8 additions & 10 deletions README.md
@@ -1,18 +1,16 @@
# create-svelte
# Sprintna.me

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

## Creating a project
## Setup

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

```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
```
_If you see a connection error, run `npm run prisma:generate` to regenerate_

## Developing

Expand Down
8 changes: 5 additions & 3 deletions src/routes/team/[id]/InviteModal.svelte
Expand Up @@ -19,8 +19,10 @@

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

0 comments on commit be34d7d

Please sign in to comment.