8000 GitHub - dxywill/Mania
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dxywill/Mania

Repository files navigation

Mania, A django based app used to collect eye images.

How to run the app in your local environemnt

  1. Create a python virutal environement using conda or virtualenv
  2. Activate virtual environment using:
    • source yourvirtualenvfolder/bin/activate (using virtualenv)
    • source activate yourvirtualenvname (using anaconda)
  3. pip install django==1.10.5 (the latest version (1.11.0 or later ) may cause some issues)
  4. pip install django-debug-toolbar (a handful debug tool for django)
  5. pip install django-registration-redux (used for authentication, the reason why it requires login is because it is easier for the same user to upload multiple photoes, but it should be easy to change)
  6. pip install pillow (for image processing)
  7. pip install pycryptodome (for image encryption)
  8. pip install mysqlclient (for mysql db access)
  9. python manager.py runserver , If you have to create DB first, run the following:
    python manage.py makemigrations
    python manage.py migrate

Deploy to Apache + mod_wsgi + Linux (Ubuntu 16.04)

  1. Create a MySql database in your localhost called maniahero
  2. Create a virtual host in /etc/apache2/sites-available/ (you can just drop in the mania.conf, this config file assumes you put your website under /var/www/Mania/, if you use a different location, you may need to change the config file accordingly)
  3. enable the site by running a2ensite mania
  4. restart apache server by running sudo service apache2 restart

Other useful info

This app use cropperjs which is a mobile friendly image crop tool https://github.com/fengyuanchen/cropperjs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0