add frontend and swap whole stack to sveltekit/nodejs

This commit is contained in:
2023-08-10 13:36:04 +02:00
parent d423c41ec7
commit ad90b440f5
124 changed files with 6665 additions and 11046 deletions

37
README.md Normal file
View File

@ -0,0 +1,37 @@
## Quickstart
To run the website locally simply execute the following commands:
```shell
# install all dependencies
$ npm i
# run in development mode. this will start the dev server at localhost:5173
$ npm run dev
```
## Building
To build the website for production, use the following command:
```shell
# install all dependencies
$ npm i
# build for production. will be available in the build/ directory
$ npm run build
# run the production build.
# this will start the server at 0.0.0.0:3000, you can customize this and various other behaviors by defining environment variables. see the configuration section below for more information
$ node build/index.js
# same as 'node build/index.js' above but this loads variables from a .env file into the environment
$ node -r dotenv/config build/index.js
```
## Configuration
Configurations can be done with env variables
| Name | Description |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `HOST` | Host the server should listen on |
| `PORT` | Port the server should listen on |
| `DATABASE_URI` | URI to the database as a connection string. Supported databases are [sqlite](https://www.sqlite.org/index.html) and [mariadb](https://mariadb.org/) |
| `PUBLIC_START_DATE` | The start date when the event starts |