When first checking out this project, you should install the dependencies with npm install
.
To do that, you need to have NodeJS installed.
The project is built to be hosted on Vercel and uses a Vercel postgres database. Locally, you can run your own database, for example with Docker:
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=postgres --name svelte_db postgres:15.3
To connect to the database for development, you need to sync the credentials to a .env.local
file, which can be done with npx vercel pull
(possibly you need to run npx vercel login
and/or npx vercel link
first).
To then 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
.
The code is automatically deployed on Vercel on push.
This project uses Prettier for code formatting. Make sure to configure your editor via a plugin.