No description
This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 99.4%
  • Dockerfile 0.5%
Find a file
2024-02-18 19:12:01 -06:00
.github Updated github workflows 2024-02-18 19:12:01 -06:00
.vscode Added healthcheck to docker compose 2024-02-18 19:12:01 -06:00
CollegiateHouseWars Updated github workflows 2024-02-18 19:12:01 -06:00
housewars Removed unique_together from points entries 2024-02-18 19:12:01 -06:00
static Removed static folder 2024-02-18 19:11:46 -06:00
templates More dynamic forms and templates 2024-02-18 19:12:01 -06:00
.dockerignore Implemented docker to work for better CI/CD 2024-02-18 19:11:46 -06:00
.gitattributes Created .gitattributes file 2024-02-18 19:11:41 -06:00
.gitignore Completed Models and starter work 2022-05-17 07:04:52 -05:00
docker-compose.yml Updated github workflows 2024-02-18 19:12:01 -06:00
Dockerfile Fixed test dockerfile 2024-02-18 19:12:01 -06:00
LICENSE Completed Models and starter work 2022-05-17 07:04:52 -05:00
manage.py Added functionality for test database. 2024-02-18 19:11:41 -06:00
Procfile Modified host value of database 2024-02-18 19:12:01 -06:00
README.md Implemented github actions for CI/CD 2024-02-18 19:12:01 -06:00
requirements.txt Added function to export to pdf 2024-02-18 19:12:01 -06:00

Collegiate Housewars

Welcome to the repository for the Collegiate School of Medicine and Bioscience Housewars site. This repository is open-source, so feel free to download, play around, or contribute. Below is a guide detailing the basic usage of the site and instructions for installation of a local server. Enjoy!

Table of Contents
Usage
Installation
Defining .env
Contributing

Usage Instructions

So far there are three primary pages on this site. They include the:

  1. Admin page - this is accessed through /admin, and contains the function for managing the activities in the latest housewars and managing points totals and student signups.
  2. Student signup form - this is accessed at /, and contains the form needed for students to signup for housewars activities.
  3. Teacher points form - this is accessed at /points and contains the form needed for teachers to add points to houses for activities.

Installation

Welcome to the installation section of the guide. This will walk you through installing the site and spinning up a local development server.

Prerequisites:

  • git - You can test if you have git installed using the command git -v, which should output a version number. If you do not have git installed you can download it here.
  • docker - You can test if you have docker installed by typing docker -v in the terminal. The resulting output should be a version number. If you do not have docker installed, you can download it here.

Instructions

  1. Clone the repository into the desired directory using git clone https://github.com/C4theBomb/collegiate-housewars.git.
  2. Navigate into the repository using cd collegiate-housewars.
  3. Open Docker and run the command docker compose up in a shell.
  4. In Docker, open the shell of the app-1.
  5. Run migrations and create a development database using python manage.py migrate.
  6. Server should be available to run. You can activate the server using python manage.py runserver. The site will be accessible using the default url.

Defining .env

The .env file is used to secure data and keep it from entering a cloud, open-acccess environment. Because of this, you will need to define a .env file yourself. The parameters that you will need are:

  • SECRET_KEY - This will contain the server key of your django local server. It can be generated using the command python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'.
  • DATABASE_USERNAME - This will be the username of your production database.
  • DATABASE_PASSWORD - This will be the password of your production database.

Contributing

As an open-source school repository we welcome all contributors willing to help make our website better.

Instructions

  1. Follow the installation instructions above to install the required packages and run the local server. You will want to fork the repository before cloning it.
  2. Commit your new features to your new forked repository.
  3. Create a pull request that details the changes/improvements that you have made.
  4. Wait for @C4theBomb to open discussion/merge your pull request.