Nik-Khandelwal / regsoft

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.
http://bits-bosm.org/
4 stars 0 forks source link

BOSM Regsoft

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/

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

  1. For Installing Python3 and Setting up pip, virtualenv & Django:

  2. For Installing Redis-Server:

  3. 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
  4. 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
  5. Run Django migrations to migrate the models.

    python manage.py makemigrations
    python manage.py migrate
  6. Collect the static files into /static directory using the folowing command. Type 'yes' to continue.

    python manage.py collectstatic
  7. Create a Superuser to generate Django Admin Panel login credentials.

    python manage.py createsuperuser
  8. Start the server.

    python manage.py runserver
  9. Modify all email addresses to avoid sending out emails during testing

    python manage.py shell < modify_emails.py
Note: If you get a server error at 127.0.0.1:8000 but are having no issues when starting the server then check if the Redis server is working or not.