Skip to content
This repository has been archived by the owner on Aug 7, 2018. It is now read-only.
/ curri Public archive

SurveyBot for feedback and suggestions for exercises in lectures. Project for TDT4140.

Notifications You must be signed in to change notification settings

ludvigk/curri

Repository files navigation

curri

Build Status Issue Count

SurveyBot for feedback and suggestions for exercises in lectures. Project for TDT4140.

Requirements

  • Python3
  • RabbitMQ-server

Installation Guide

  1. Download the source code.

  2. Install the required software.

    With macOS/Homebrew

        $ brew install python3
        $ brew install rabbitmq

    Remember to put the RabbitMQ PATH in .bash_profile or similar

       PATH=$PATH:/usr/local/sbin
    

    With apt-get

        $ apt-get install python3
        $ apt-get install rabbitmq-server
  3. Install required python modules from curri/

        $ pip3 install -r requirements.txt
  4. Create email_settings.py file in curri/mysite/mysite/

        EMAIL_USE_TLS = True
        EMAIL_HOST = 'smtp.example.com'
        EMAIL_HOST_USER = 'email@example.com'
        EMAIL_HOST_PASSWORD = 'password'
        EMAIL_PORT = 587
  5. Add mysite_uwsgi.ini file to curri/mysite/

        # mysite_uwsgi.ini file
        [uwsgi]
        
        # Django-related settings
        # the base directory (full path)
        chdir           = # TODO
        
        # Django's wsgi file
        module          = mysite.wsgi
        
        # the virtualenv (full path)
        # ignore if not using virtualenv
        home            = # TODO
        
        # process-related settings
        # master
        master          = true
        
        # maximum number of worker processes
        processes       = 10
        
        http-socket     = [::]:80
        vacuum          = true
  6. Migrate databases in curri/mysite

        $ python3 manage.py migrate
  7. Start Celery and RabbitMQ in their own terminal

        $ sudo rabbitmq-server
        $ celery -A mysite worker -l info
  8. Run the server

        $ cd curri/mysite/
        $ sudo uwsgi --ini mysite_uwsgi.ini

About

SurveyBot for feedback and suggestions for exercises in lectures. Project for TDT4140.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •