The Computer Science Club's CMS.
To get started, please follow these steps:
- Install the dependencies.
pnpm install
- Copy
.env.example
to a new file.env
and set the required environment variables. - If MongoDB is not already installed and you’re not using a Docker container, follow the MongoDB Community Edition Installation Guide and start the service.
- Run the development server.
pnpm dev
- Open http://localhost:4000/admin with your browser to go to the Payload admin page.
The root user is seeded into database upon first load the credentials can be changed in the .env
file:
ROOT_EMAIL=
ROOT_PASS=
This user has admin permissions to create more users and give further permissions.
-
Create a new folder named
images
in your project directory. -
Inside the
images
folder, create a subfolder for each gallery. Use descriptive names such asmeet-and-greet-S1-2025
orindustry-night-2025
. -
Place the photos you want to compress inside the appropriate gallery subfolder.
-
Install the Python requirements:
pip install -r requirements.txt
-
Run the following command to compress all images:
python compress-images.py
This will process and compress the images in each gallery folder. You can now upload these photos to the CMS.
We welcome contributions to enhance the CS Club CMS! If you find any issues, have suggestions, or want to request a feature, please follow our Contributing Guidelines.
This project is licensed under the MIT License. See LICENSE for details.