Everything you need to build a Svelte project, powered by create-svelte
.
- Create a
.env
(you can usecp .env.example .env
and fill in the blanks). - Setup DB:
npx prisma migrate reset
- Get Google OAuth credentials and set the callback URL to
http://localhost:5173/auth/callback/google
- Get Spotify developer credentials, set callback to
http://localhost:5173
npm run dev
If you see a connection error, run npm run prisma:generate
to regenerate
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.