Giter VIP home page Giter VIP logo

prosthetic-runner's Introduction

Prerequisites

  • Google App Engine SDK installed

Running the prosthetic server locally

  • copy app.yaml.local.template to app.yaml.local and edit to include an application name. (can be anything for local development)
  • Create a super-user with the following commands in the python console:
    from django.contrib.auth.models import User
    su = User.objects.create_user('admin', 'admin@localhost', 'password') 
    su.is_staff = True
    su.is_superuser = True 
    su.save()

Running the prosthetic server remotely

  • register a google app engine domain (http://appengine.google.com/)
  • copy app.yaml.local.template to app.yaml.local and edit to include the name of your registered domain
  • run "python manage.py deploy" to deploy the application on GAE.
  • (once deployed) run "python manage.py remote shell" to connect to the server remotely.
  • Create a super-user with the following commands in the python console:
    from django.contrib.auth.models import User
    su = User.objects.create_user('admin', 'admin@localhost', 'password') 
    su.is_staff = True
    su.is_superuser = True 
    su.save()

(you probably want to use a better username/password)

  • Visit your app at http://.appspot.com/

Adding a prosthetic to the server

  • Visit the admin site (/admin/) on your server. Log in. Click the "add" button next to 'prosthetics'.
  • Fill in the name and description of your prosthetic. Can be anything.
  • The classname needs to be the python classname of the implementation of your prosthetic. The bundled interesting prosthetic classes are "emotional.prosthetic.Emotional" or "dreamer.prosthetic.Dreamer". If your classname is the same as the folder name, but capitalized, you can just use a single word ('emotional' or 'dreamer' in this case).
  • Server should be the hostname of the weavrs server you want your prosthetic to talk to. Probably www.weavrs.com.
  • Consumer key/secret are from the prosthetic page on the weavrs server. Visit http://www.weavrs.com/developer/ for details.
  • Check 'show on homepage' if this is the main prosthetic you want to run on this server. A server can contain multiple prosthetics, but only one will be displayed on the homepage of the server.
  • Click "save"
  • Return to the root of your site to see the enabled prosthetic.

Other code

This source tree includes the following other projects:

prosthetic-runner's People

Contributors

tominsam avatar lsimons avatar atomless avatar stml avatar

Watchers

Nick Rothwell avatar James Cloos 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.