Git Product home page Git Product logo

chez-betty's Introduction

Chez Betty

Build Status Code Climate Scrutinizer Code Quality

Chez Betty is a mini, cooperative food store where users can deposit money to their account and use it to purchase food and other items. The system is linked to the UMich ldap server so users can swipe their M-Card to login.

UMich version is an homage to UCSD's Chez Bob. Chez Betty runs here.

Chez Betty is written as a Python web app designed to run on a server with a browser based user interface. It supports cash and credit card deposits. The user interface expects a card swiper and barcode scanner to be attached to the machine. See the list at the end of this README for products we use. To test / demo the system without hardware, turn on "Demo mode" in the admin interface.

Installation

The Chez Betty application is developed using Python Pyramid. To get a development environment set up, do the following:

  1. Clone this repository

     git clone https://github.com/um-cseg/chez-betty.git
    
  2. Install system dependencies:

     # Ubuntu 15.10
     sudo apt-get install postgresql postgresql-server-dev-9.4 libjpeg-dev
     # Ubuntu 16.10
     sudo apt-get install postgresql postgresql-server-dev-9.5 libjpeg-dev
    
  3. Setup virtualenv with Python3:

     cd chez-betty
    
     # Python cannot decide on how it wants to do this. So
     # we have multiple iterations that we have tried.
     ## Way back:
     # virtualenv .
     ## Python3.3:
     # python3 -m venv .
     # ^ *not* pyvenv ., that installed python2 in my venv for w/e reason
     ## Newest (only do this with Python 3.4+):
     # pyvenv-3.5 venv
     ## Python 3.6 changes it again!
     python3.6 -m venv
    
     source venv/bin/activate
    
  4. Install the dependencies:

     # Note, this step *must* be run before setup.py. The latter will use
     # easy_install to install requirements instead of pip, which will
     # break some packages (e.g. stripe). The argument should be the root
     # directory of the project.
     pip install -e .
    
  5. Setup the development environment

     python setup.py develop
    
  6. Update development.ini to set config information and passwords.

     cp development.ini.example development.ini
     [edit development.ini]
    
  7. Setup the database:

     python chezbetty/initializedb.py development.ini
    
  8. Install bower and bower-install

     # Note: Distro copies of node tend to fall behind really quickly.
     # You are better off using a copy of node/npm installed directly:
     # http://nodejs.org/
     # https://github.com/npm/npm
     sudo npm install bower bower-installer -g
    
  9. Get all css/js dependencies

     bower-installer
    
  10. Run the webserver:

     pserve development.ini
     # n.b. pserve will be in your path if your virtualenv is active
    

LDAP

TODO: add information about how to setup LDAP connection.

Bitcoin

TODO: add info about how to setup bitcoin/coinbase.

Usage

View the client interface using

http://127.0.0.1:6543

View the admin interface using

http://127.0.0.1:6543/admin
username: admin
password: chezbettyadmin

Tools

Chez Betty currently runs using:

chez-betty's People

Contributors

bgr360 avatar bradjc avatar brghena avatar carsaab avatar cmbartschat avatar duuw avatar ewust avatar githabibi avatar higherkuo avatar ppannuto avatar rahmati avatar sanaerosen avatar tzachari avatar yufansun avatar zakird avatar

Watchers

 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.