GithubHelp home page GithubHelp logo

acm-uiuc / groot-merch-service Goto Github PK

View Code? Open in Web Editor NEW
2.0 36.0 0.0 67 KB

Groot service for injecting caffeine into your blood stream.

License: Other

Ruby 100.00%
groot palantir vending-machine merch

groot-merch-service's Introduction

Groot Merch Service

Build Status

Join the chat at https://acm-uiuc.slack.com/messages/C6XGZD212/ Join the chat at https://acm-uiuc.slack.com/messages/C6XD34KTM

Getting Started

  1. Create database in mysql with: CREATE DATABASE groot_merch_service_dev;
  2. cp config/secrets.yaml.template config/secrets.yaml
  3. Fill in appropriate database credentials in config/secrets.yaml.

Routes

:: GET ::
/merch/items
/merch/items/:id
/merch/status
/merch/users
/merch/users/:netid
/merch/users/pins/:pin

:: POST ::
/merch/items
/merch/transactions

:: PUT ::
/merch/items/:id
/merch/transactions

:: DELETE ::
/merch/items/:id

groot-merch-service's People

Contributors

bcongdon avatar narendasan avatar sameetandpotatoes avatar therishidesai avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

groot-merch-service's Issues

Pins should not be passed via URL arg

Would rather pins be passed in a json obj. in an object like

{
    "netid": NETID,
    "pin": PIN,
}

will let us better mess with different auth techniques in the future

Metrics Routes

Some way to get usage stats (common times, popular sodas, leaderboard, etc.)

"Malformed HTTP Status Code: 5"

We're seeing this entry in the merch service logs:
2017/09/08 13:57:51 Get http://groot-merch-service:6969/merch/users/bcongdo2: malformed HTTP status code "5"

This causes the credits to display as 0, and the user pin to not be displayed when viewing the credits panel in the intranet.

Originally reported as acm-uiuc/groot-credits-service#11

Heartbeat lockdown

The service should prevent any further requests to Merch if the pi does not response to a heartbeat sent out by this service. This will allow us to know as soon as the service goes down. This sort of heartbeat will be very useful for Concert and other future services and Merch provides a good platform to test it on.

Stock Notifications

Integrate automatic stock notifications and automatically purchase stock when empty

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.