Skip to content

Latest commit

 

History

History
60 lines (34 loc) · 1.52 KB

README.markdown

File metadata and controls

60 lines (34 loc) · 1.52 KB

Event Map

Simple Event Map Flask web application, including SQLAlchemy, WTForms and Bootstrap, OAuth, and more...

Demo

Installation

$ git clone git://github.com/homoludens/EventMap.git
$ cd EventMap

Setting up virual envirement

$ sudo pip install virtualenv
$ virtualenv venv
$ . venv/bin/activate

Install Dependencies

pip install -r requires.txt

Start application

python main.py

Exit virtualenv

$ deactivate

Customizations

Change this in __init__.py for reseting password:
  
MAIL_USERNAME = '[email protected]',
MAIL_PASSWORD = 'your.password',

Modules

Although it is possible for a Flask app to be contained entirely within a single Python module, this project splits different functionality into different modules to facilitate maintainability. Below is a description of each module.

  • __init__.py - Constructs the Flask app object and configures it. Imports the other modules to emulate a single-module application.
  • config.py - Contains the app configuration.
  • forms.py - Contains WTForms Form objects for use in views and templates.
  • hooks.py - Contains Flask and Jinja helper methods.
  • models.py - Contains the database model classes for SQLAlchemy.
  • views.py - Contains the app views.

Running

python main.py

Facebook OAuth login

go to http://localhost:5000 to view application and to make fb login to work

Screenshot