Git Product home page Git Product logo

akqa-christmas-sandwiches's Introduction

AKQA Christmas Sandwiches

For the last two years, the London AKQA office has informally rated the Christmas lunch offerings of the various eateries in the area surrounding the office. The results of these were originally stored in a Google Sheet, however as the rating system developed, a database seemed a more appropriate solution, and Shiny offered a perfect way both for users to enter data and to visualise the results.

Setup

The code included in this repo should be sufficient to run this app on your own shiny server. A demo SQL database has been included for demonstration purposes. To load this, you'll first need to create a new database in your mysql server:

CREATE DATABASE sandwiches;

Then import the provided sql file imto the database

mysql -u root -p sandwiches < database.sql

You can also create a new user to access the database. Although you can use root, it's best practice to have a dedicated user.

CREATE USER 'shiny'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';
GRANT SELECT, INSERT, DELETE, UPDATE ON sandwiches.* TO 'shiny'@'localhost';
FLUSH PRIVILIGES;

You will also need to add an .Renviron file to your local environment with your username and password. A template this is found in the repo, just change the username and password settings to match you environment. Depending on your server setup, you might also need to update the various database connections to add:

host='127.0.0.1'

Then, either symlink the or copy your folder into your shiny server.

An example of this running is available on this shiny server.

akqa-christmas-sandwiches's People

Contributors

jamescottrill avatar

Watchers

James Cloos 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.