GithubHelp home page GithubHelp logo

guts_site's Introduction

GUTS_website

TODO:

  • Email sending status - how many emails sent out of how many

  • Email sending - respect unsubscribed

  • Event photos upload admin interface (take from event creating?)

  • Test facebook integration on event creating

  • Facebook integration on event editing

  • ics generator/parser (for one click add event to GCal and others)

INSTALL

  1. Install dependencies

sudo apt-get install git mysql-server apache2 python-pip libapache2-mod-wsgi python-mysqldb
  1. Install flask and other python modules:

pip install flask-sqlalchemy flask-wtf flask-login requests
  1. Assuming cloned to /var/www, add to /etc/apache2/httpd.conf:

    

        WSGIDaemonProcess application user=www-data group=www-data threads=5
        WSGIScriptAlias / /var/www/GUTS_website/guts.wsgi

        
            WSGIProcessGroup application
            WSGIApplicationGroup %{GLOBAL}
            Order deny,allow
            Allow from all
        
    
  1. Create mysql user and database:

create database guts;
create user 'guts'@'localhost' identified by 'password';
grant all privileges on guts.* to 'guts'@'localhost';
  1. Create tables from the models:

python
>>>> from guts_website import db, models
>>>> db.create_all()

To add new technology:
project = models.Project("title", "author", "contact", "web address", "description", "icon")
project.technologies.append(models.Technology("flask", "http://flask.pocoo.org/"))
db.session.add(project);
db.session.commit()

CONFIGURE

The file guts_website/sensitive.py contains passwords which are not the same as in the production environment for obvious reasons. You can play with the sandbox page as much as you would like.

CONTRIBUTE

First of all, thank you!

Fork this repository, do your things in a new branch, commit not too small and not too big changes and just send me a pull request. More about the process here.

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.