Skip to content
Moritz edited this page Nov 3, 2015 · 6 revisions

Backend

Python/Flask/Tornado based. Renders the usual HTML stuff. Handles Requests to render a scene on the backend and establishes a WebSocket connection to return the rendered image piece by piece.

Image generation

The renderer generates 50x50 sized subimages. Everytime a new subimage is generated, a image of the final image size is updated containing every subimage that has been rendered so far. Via the websocket connection, the webapp tells the client to update the image.

User system/Scene storage

Features:

  • Register/Login/Logout (Simple username/password)
  • Save and load scenes

API

/* clientapp (angular app)

/users*

/scenes*

/render <- websocket

Guidelines:

Serving Angular with Django or Nginx

http://stackoverflow.com/questions/18148909/what-are-the-best-practices-to-use-angularjs-with-django

API for Angular and Django

http://blog.kevinastone.com/getting-started-with-django-rest-framework-and-angularjs.html

Clone this wiki locally