This is the repository for the registration software used in the BITS Open Sports Meet (BOSM), The Annual Sport's Festival of BITS Pilani, Pilani Campus. Website: http://bits-bosm.org/
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Python3
- pip & virtualenv
- Django 1.11+
- Redis-Server
- For Installing Python3 and Setting up pip, virtualenv & Django:
- Download Python3 from the Official Website. Don't forget to add it to the PATH if you are using Windows.
- Set up pip, virtualenv and django
- For Installing Redis-Server:
- For Windows - Follow Stack Overflow Question
- For Ubuntu - Follow Official Quickstart Guide or the one on Digital Ocean
- Clone the project locally from GitHub by running the following and cd into regsoft directory:
git clone https://github.com/Nik-Khandelwal/regsoft.git
cd regsoft
- Create a virtual environment with Python3 and install the dependencies (commands slightly vary in Windows).
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
- Run Django migrations to migrate the models.
python manage.py makemigrations
python manage.py migrate
- Collect the static files into /static directory using the folowing command. Type 'yes' to continue.
python manage.py collectstatic
- Create a Superuser to generate Django Admin Panel login credentials.
python manage.py createsuperuser
- Start the server.
python manage.py runserver
- Modify all email addresses to avoid sending out emails during testing
python manage.py shell < modify_emails.py