Skip to content

execut4ble/vilnius-hardcore

Repository files navigation

Vilnius Hardcore

An events agenda app for a DIY music venue, built with SvelteKit.

Local development

Database setup

A PostgreSQL database server needs to be running (locally or remotely) so that the website can fetch/store data.

It can be set up using a Docker container or a manual PostgreSQL installation.

Using Docker

  1. Create a docker-compose.yml file with desired database credentials (see docker-compose.yml.example).
  2. Run the database container:
npm run db:start

Once the database is running:

  1. Create a .env file containing database connection string (see .env.example).
  2. Build the database schema. Agree to execute all statements when asked.
npm run db:migrate

Any changes made to the schema during development can be synced by running:

npm run db:push

Running a development server

Once you've cloned the repository, set up the database and installed dependencies with npm install, start a development server:

npm run dev

Deploying

See install instructions