The goal of this project, it to create a new website for JDR-Poly : a commission of the AGEPoly. AGEPoly is an association of the EPFL
This website works using Sveltekit (an application framework powered by Svelte and Vite)
The main language used is TypeScript, and the database is a Postgresql database
- Clone the project and run
npm install - Create .env file with all the appropriates settings
BODY_SIZE_LIMIT=Infinity
DB_IP=
DB_PORT=
DB_NAME=
DB_USER=
DB_PASSWORD=
MAIL_HOST=
MAIL_PORT=
MAIL_USER=
MAIL_PASSWORD=
TURNSTILE_SECRET="1x0000000000000000000000000000000AA"
PUBLIC_DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
PUBLIC_DISCORD_REDIRECT_URI=
In a DEV environment, MAIL_HOST, MAIL_PORT, MAIL_USER and MAIL_PASSWORD are optional
TURNSTILE_SECRET is the secret for cloudflare turnstile
- Create a postgresql database (can be done with though docker with
make dband stopped withmake db_down) - Manually run the migration using
npm run migrator up - Run using
npm run dev
- run
npm run build - (Optional) edit .env
- Serve with
npm run start(ornpm run start -- --httpif you don't want https)
https use express server under the hood (https://kit.svelte.dev/docs/adapter-node#custom-server), you will need to modify server.js to set your own certificate.