Installation Instruction - ParnThanatibordee/KUIZ GitHub Wiki

Getting Start

  1. Clone the respository to your machine or PC.

    git clone https://github.com/ParnThanatibordee/KUIZ.git
    
  2. Change directory to the local repository by typing this command.

    cd KUIZ
    
  3. Install virtualenv to your machine or PC by this command.

    py -m pip install virtualenv
    
  4. Create virtual environment for KUIZ directory.

    py -m venv venv
    
  5. Activate virtual environment.

    For Mac OS / Linux

    source venv\Scripts\activate
    

    For Window

    venv\Scripts\activate
    
  6. Install all require packages by this command.

    pip install -r requirements.txt
    
  7. Create .env file inside KUIZ (same level as settings.py) and change the debug=True.

    SECRET_KEY=YOUR_SECRET_KEY
    DEBUG=True
    GOOGLE_OAUTH2_KEY=YOUR_GOOGLE_OAUTH2_KEY
    GOOGLE_OAUTH2_SECRET=YOUR_GOOGLE_OAUTH2_SECRET
    
  8. Type this command to migrate the KUIZ database.

    py manage.py migrate
    
  9. Running the server by this command.

    py manage.py runserver