Giter VIP home page Giter VIP logo

se-server's Introduction

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

MongoDB

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

[email protected]
qwe123

current 2 db
    yalehout
    yalehout_prod

se-server's People

Contributors

ted0x1 avatar mengci avatar yuanxiacpp avatar

Stargazers

Maxwell Zhou avatar

Watchers

Maxwell Zhou avatar

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.