Skip to content

maxziv/SE-Server

 
 

Repository files navigation

Author: Haotian, Yuan

Last Update: Apr 25th, 2014


front end

bootstrap
javascript

back end

python
flask
jinja
mongodb

Design Pattern

The design of the system follows MVC pattern.

Model

Data model for users, events, profiles and match records. 
Check models/models.py for detailed data model design.

View

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

Controller

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

Setup

All assume MAC, PC please do the equivalent and ask me install Python (you should have by default)

Check Python

haotians-mbp:~ Ted$ python 
Python 2.7.5 (default, Sep  2 2013, 05:24:04)

make sure version is > 2.7, if not update

Install git (you should have by default)

setup github and fork https://github.com/tedsunnyday/SE-Server

Install homebrew

http://brew.sh/
goto shell and run

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install pip

sudo easy_install pip

Install google app engine SDK for python

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

(optional) Install MongoDB to localmachine

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

Account Info


Gmail

yale.hout@gmail.com
yalese14

MongoDB

https://mongolab.com/databases/yalehout/collections/

yale.hout@gmail.com
qwe123

current 2 db
    yalehout
    yalehout_prod

About

Welcome! Hout is an event-driven social platform for users to make friends with people nearby.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.8%
  • CSS 5.7%
  • JavaScript 2.5%