Coder Social home page Coder Social logo

mania's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.