fe3495227d9e2d8e4dd618e6bb73a77ce3f75aac
ECSESS Website
Made by ECSESS 2024-2025
Prerequisite knowledge
npmknowledge. We usebunfor this project. See https://bun.sh for installation guide.- Svelte & SvelteKit: Follow the tutorial here: https://svelte.dev/tutorial/svelte/welcome-to-svelte
Tech stack
Frontend
-
SvelteKit (Svelte v5, Kit v2)
- JavaScript with JSDoc
- Svelte Auto Adapter
-
TailwindCSS (v4.0)
-
bunas Node.js package manager (similar tonpm,yarn,pnpm, anddenov2)
Content Management System (CMS)
- Sanity CMS
Development guide
- Clone the repo, install dependencies, and start dev environment:
git clone https://github.com/mcgill-ecsess/ecsess-site.git
bun i
bun run dev
-
Branches:
name purpose mainThe development of the site, default branch on ECSESS org. masterDeployment of the site, default branch on EUS org. development branches If you're working on an issue, name your branch accordingly so that we know what feature it is -
To create a production version of the website:
bun run build
bun run preview # to preview the production build
Deployment
- Other than the deployment on EUS server with AWS Caddy, there are alternative ways to deploy the website!
Docker
- Edit the
.envfile to include theSANITY_IDof the CMS - From the root directory of the project
# Build the website with `nightly` tag
docker build -t ecsess-website:nightly .
docker run -p 4173:4173 ecsess-website:nightly
- The site should now be running on
localhost:4173
Description
Languages
Svelte
86.9%
TypeScript
7.1%
CSS
4.2%
JavaScript
1.1%
HTML
0.4%
Other
0.3%