Once you've cloned the project and installed dependencies with npm install
, configure your environment using .env.example
or the table bellow:
cd matchify
cp .env.example .env
Variable | Description |
---|---|
DATABASE_URL | Path to your SQLITE database file |
VITE_HOST_URL | Hosts URL (default: http://localhost:5173) |
VITE_PROFILE_URL | Profile URL (default: ${HOST_URL}/app/profile) |
VITE_SPOTIFY_REDIRECT_URI | Your Spotify Auth Redirect URI |
VITE_SPOTIFY_CLIENT_ID | Your Spotify Client ID |
VITE_SPOTIFY_REDIRECT_URI | Your Spotify Auth Redirect URI |
VITE_SPOTIFY_CLIENT_SECRET | Your Spotify Client Secret |
Then, start the dev server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
You can take a look at Routes.md
files under each route namespace for route descriptions:
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.