GithubHelp home page GithubHelp logo

uppsaladatavetare / foobar-kiosk Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 4.0 785 KB

The frontend of the FooBar kiosk and inventory system.

License: MIT License

JavaScript 0.06% HTML 0.70% Python 9.79% TypeScript 70.55% Shell 3.68% SCSS 15.21%
shop kiosk

foobar-kiosk's Introduction

foobar-kiosk

This repository contains the frontend for the FooBar kiosk and inventory system.

kiosk.mp4

(click on the image for a high quality video)

Our setup

  • Raspberry Pi 3 Model B (with Raspian Jessie on it)
  • PCP-BCG4209 barcode scanner
  • MIFARE-compatible RFID reader
  • A capacitive touch screen (D-WAV Scientific Co., Ltd eGalax TouchScreen)

Setting up a new kiosk

The entire setup and deployment process is using Ansible.

Firstly, make sure that you have SSH access to a freshly setup Raspberry Pi and add it to the inventory file.

[live]
192.168.1.100

Then provision it:

ansible-playbook playbook.yml -l live

Deployments can be done using a subset of the tasks in the playbook:

ansible-playbook playbook.yml -l live --tags deployment

Frontend

The frontend is build with React, Redux and Typescript. We use Webpack to bundle the the modules to a single bundle.js.

API host and key to the foobar-api has to be set in a file called config.js, or by specifying a path to the file in an enviroment variable named SETTINGS. Example config can be seen in config.example.js.

Installs the frontend dependencies:

npm install

Builds the project in development mode and host it on a local dev-server. Webpack will listen file changes and rebuild necessary parts:

npm start

Builds the project in production mode. Will output build/build.js:

npm run build

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.