Author: Haotian, Yuan
Last Update: Apr 25th, 2014
bootstrap
javascript
python
flask
jinja
mongodb
The design of the system follows MVC pattern.
Data model for users, events, profiles and match records.
Check models/models.py for detailed data model design.
Mobile adjusted web UI design for all our functionalities.
templates/profile.html: webpage for profile viewing
templates/map_view.html: webpage for viewing all event on a map
tempaltes/landing.html: homepage
templates/event_list.html: webpage for viewing all event in a list
templates/event.html: webpage for viewing event details
templates/edit_profile.html: webpage for profile editing
Backend APIs which support support data from mongodb to frontend
controllers/event_controller.py: all APIs hanlding requests related to events
controllers/profile_controller.py: all APIs hanlding requests related to profile
controllers/match_controller.py: all APIs hanlding requests related to event match logic
All assume MAC, PC please do the equivalent and ask me install Python (you should have by default)
haotians-mbp:~ Ted$ python
Python 2.7.5 (default, Sep 2 2013, 05:24:04)
make sure version is > 2.7, if not update
setup github and fork https://github.com/tedsunnyday/SE-Server
http://brew.sh/
goto shell and run
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
sudo easy_install pip
https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Python run the application, if cannot get started then try to cd to the SE-Server dir, and run below command
sudo pip install -r requirements.txt
you may need to sudo as well
brew update
brew install mongodb
and then start the MongoDB daemon by
mongod
and then in another terminal
mongo
you should now in the interactive shell, more info here http://docs.mongodb.org/manual/tutorial/getting-started/
please noted that even you are running the application locally, the current connection string is still pointing to the remote mongolab db, so, if you want to point the mongo db locally, find the db config code in main.py
and
comment out and comment the code, which has been commented so quite selfexplaintary, make sure you mongod first
yale.hout@gmail.com
yalese14
https://mongolab.com/databases/yalehout/collections/
yale.hout@gmail.com
qwe123
current 2 db
yalehout
yalehout_prod