Code Monkey home page Code Monkey logo

zzzeek_pycon2014_atmcraft's Introduction

ATMCRAFT

A demonstration Pyramid application written by Mike Bayer.

For the corresponding Minecraft Bukkit plugin, see https://bitbucket.org/zzzeek/pycon2014_atmcraft_java/.

This program runs a simple web service which accepts commands regarding "bank accounts".

The key database entities are:

  • Client - represents a username/password that can log into the "atm"
  • AuthSession - represents a specific login session for a Client
  • Account - represents a set of balances on behalf of a Client
  • AccountBalance - represents a specific balance (amount) for a certain type of asset (a BalanceType)
  • BalanceType - represents a specifc kind of asset
  • Transaction - represents a change in value to a specific AccountBalance

Usage

  • Clone the repository:

    git clone //bitbucket.org/zzzeek/pycon2014_atmcraft.git
    cd pycon2014_atmcraft
    
  • Create a virtualenv:

    VENV=$(pwd)/venv
    virtualenv-2.7 $VENV
    
  • Install the package and its dependencies:

    $VENV/bin/pip install -e .[tests]
    
  • Update the development.ini to contain a valid connection string by either creating the user scott with password tiger or modifying the url.

  • Create the postgresql database:

    createdb -O scott atmcraft
    
  • Initialize the database:

    $VENV/bin/alembic -c development.ini upgrade head
    
  • Execute the tests:

    TEST_INI=$(pwd)/development.ini $VENV/bin/nosetests
    
  • Run the server:

    $VENV/bin/pserve development.ini
    

zzzeek_pycon2014_atmcraft's People

Contributors

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