Installation & Setup

Pre-Requisites

  1. python

  2. mysql

  3. git

Setup

  1. create a folder named ExamCouch and clone the repository into that folder.

    git clone https://github.com/ExamCouch/examcouch-api.git
    
  2. install virtualenv to create a virtual environment of any name & activate it using below commands.

    pip install virtualenv
    virtualenv [name]
    [name]\Scripts\activate
    
  3. install the project dependencies

    pip install -r requirements.txt
    
  4. create, migrate the database and then create an admin account using below commands.

    python mysql_migration.py [root_user] [root_user_password] createsuperuser
                                  OR
    python mysql_migration.py [root_user] [root_user_password]
    python manage.py migrate
    python manage.py createsuperuser