Giter VIP home page Giter VIP logo

brender's Introduction

brender 2.0

Development repo for brender 2.0 (the original version 1.0 is here https://github.com/oenvoyage/brender). This is the Flask-based version, a new direction taken after getting some feedback from Sergey and Keir.

Developer installation

Basic requirement at the moment are:

Following the Flask idea, we install the server, workers and dashboard unsing virtualenv. Text copied from the Flask guide.

$ sudo easy_install virtualenv

On Linux this might work better:

$ sudo apt-get install python-virtualenv

Once you have virtualenv installed, just fire up a shell and create your own environment. You may want to create this folder inside of the brender folder:

$ cd brender
$ virtualenv venv
New python executable in venv/bin/python
Installing distribute............done.

Now, whenever you want to work on a project, you only have to activate the corresponding environment. On OS X and Linux, do the following:

$ . venv/bin/activate

Now you can just enter the following command to get Flask activated in your virtualenv:

Core dependencies

$ pip install Flask

At this point you should install peewee as well:

$ easy_install peewee

Psutil is needed for gathering system usage/performance stats on the worker. Ideally psutil is needed only on the workers.

$ pip install psutil

then install

$ pip install gocept.cache

Congratulations, brender and its dependencies should be correctly installed and ready to run. As a final step we should add a couple of hostnames into the /ets/hosts file:

127.0.0.1	brender-server
127.0.0.1	brender-flask

Running brender

It's pretty simple. Move into the brender folder and run - in three different terminals:

$ python brender.py server  		# will start the server
$ python brender.py worker			# will start the worker
$ python brender.py dashboard		# will start the dashboard

If you now visit http://brender-flask:8888 with your web browser you should see the dashboard!

Architecture

At the moment the content of the brender folder is quite messy due to refactoring. The important subfolders are:

  • server containing the server files
  • worker containing the worker files (render nodes)
  • dashboard containing the dashboard (web interface to talk to the server)

This structure explains also the naming conventions adopted to distinguish the different parts of brender. Each folder contains an individual Flask application. Server and Worker exchange JSON formatted messages between each other via HTTP, using GET or POST methods. Dashboard connects to the Server only and accepts connections from clients (Browsers).

At the moment we have the following addresses:

About the web interface

Frameworks and tools used by the interface are:

  • jQuery
  • Bootstrap
  • DataTables

User and Developer documentation

Most of this document will be migrated into the docs folder, alongside with the user documentation.

The documentation is made with Sphinx and uses the readthedocs.org theme, so make sure you have it installed. Instructions are available here:

https://github.com/snide/sphinx_rtd_theme

The _build contains the locally compiled documentation, which does not need to be committed to the branch.

brender's People

Contributors

cyprusglobe avatar fsiddi avatar martijnberger avatar oenvoyage avatar scantlight avatar sergeyvfx avatar

Watchers

 avatar  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.