Giter Site home page Giter Site logo

devinmatte / tonic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ramzallan/tonic

0.0 1.0 0.0 345 KB

A modern web client for RIT CSH's networked vending machines

Home Page: https://tonic.cs.house

License: GNU General Public License v3.0

HTML 1.81% JavaScript 95.12% CSS 3.07%

tonic's Introduction

Tonic (WebDrink Re-Reloaded)

GitHub GitHub package.json dependency version (prod) GitHub top language

A modern, fast, React-Redux-y web frontend for Computer Science House's networked vending machines that ties into Mizu, and replaces WebDrink.

Overview

Tonic is a single page web app allowing members of CSH to use our Drink machines. Users can view current stock and drop drinks using their credits. Drink Admins can perform several operations like editing item names and prices, updating member credit balances, and updating machine stocks.

Built on Node.js and using React, Redux, and React Router, Tonic interfaces asynchronously with the Drink Server through the JavaScript Fetch API.

Related Projects

  • Mizu - A set of RESTful, public APIs used to interface with underlying databases and the Drink Machines.
  • Potion Seller - An application to control the Drink machine hardware, built to run on a Raspberry Pi.

Screenshots

Tonic, like most CSH sites, is behind member authentication, but below are screenshots that show most of the current functionality.

Homepage

Users can view the items stocked in each vending machine along with their respective price, and can drop the items, given they have enough credits. Admins can edit slots in machines, changing what item is stocked in each slot, as shown below.

The homepage of Tonic

Editing a slot

When editing a slot on the stock list, Admins can select an item from a dropdown, and manually toggle the active state of a slot. Slots are automatically disabled when the machine deems them empty.

Editing a slot in Tonic

Item list

Admins can view a list of all items in the database, with an optional search query. They can edit the details of or delete the items, as well as add new items given a name and price.

The Items List in Tonic

Editing an item

Admins are presented a modal when editing items, similar to the one for editing slots, which allows them to update the name and price of the item in the underlying database.

Editing an item in Tonic

User list

Admins can search through CSH users given a search query, and set, increment, or decrement their drink balances given a number and selected operation.

The User List in Tonic

Developing locally

Prerequisites

Steps

  • yarn install
  • yarn start

tonic's People

Contributors

ramzallan avatar

Watchers

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.