1 / 8

AIS Final Project Web2.0 Conference Room

AIS Final Project Web2.0 Conference Room. Lixing Pan, Jian Wang, Ming Wang. Functional Framework.

noleta
Download Presentation

AIS Final Project Web2.0 Conference Room

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AIS Final ProjectWeb2.0 Conference Room Lixing Pan, Jian Wang, Ming Wang

  2. Functional Framework • Create web service that facilitates the communication among people as long as they have access to the internet. In contrast, most IM required local client installed. Our implementation is hence much more convenient and accessible. • Private/public conference room with short description • Room member control/list • Message log

  3. Functional Framework (cont.) • To Do • Voting for user-defined poll • File sharing among room members • Scratch board (what you do is what you see) • Multiple owners of single room • Voice • Video • … …

  4. Technical Framework • Cloud Platform: Google AppEngine for Python • Web Server maintained by Google for us • High reliability and scalability • Pay as you go • Explore commercial cloud service • Language: Python2.7, html, JavaScript(Ajax) • Framework: Django-nonrel • Django enables rapid deployment of web application • Django-nonrel is an independent Django branch with NoSQL support for ORM • Database: Google’s High Replication Datastore • High Reliable non-relational database

  5. Features • Rooms: public and private • Users: join rooms, create rooms, delete rooms • In rooms: send message, see history, see member list • Room owners: edit room comment, change privacy, change password, enable or disable room members, delete room

  6. Data Models • Room owner, created(time), roomName, comment, public, password, deleted • Message Room(foreignKey), type, author, message, timestamp • RoomUser rname, uname, talk_permission, inroom

  7. How Ajax works • function sync_messages() { •     $.ajax({ •         type: 'POST', •         data: {id:window.chat_room_id}, • url:'/rooms/sync/', • dataType: 'json', • success: function (json) { • last_received = json.last_message_id; • last_time = json.last_message_time; • }         •     }); • setTimeout("get_messages()", 1000); • }

  8. How controller works • @login_required • def sync(request): •        if request.method != 'POST': •         raise Http404 •        post = request.POST       if not post.get('id', None): •             raise Http404       r = Room.objects.get(id=post['id'])

More Related