The goal of this project, it to create a new website for JDRPoly : 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
- Create a postgresql database and run files in ./migrations/ on it
- Clone the project
- Run
npm install
in the project folder (you need to have nodejs and npm installed) - Create .env file with all the appropriates settings
BODY_SIZE_LIMIT=0
DB_IP=
DB_PORT=
DB_NAME=
DB_USER=
DB_PASSWORD=
MAIL_HOST=
MAIL_PORT=
MAIL_USER=
MAIL_PASSWORD=
In a DEV environment, MAIL_HOST, MAIL_PORT, MAIL_USER and MAIL_PASSWORD are optional
- Run initialize-up migration file in your postgresql database
- Run using
npm run dev
- run
npm run build
- (Optional) edit .env and .env.local
- For https support follow (you can then add https like a normal express server)
- Serve with
node -r dotenv/config server.js
(ornode -r dotenv/config build
if 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.
If you add a smui package, you need to run npm run prepare
after having added the smui package