Giter VIP home page Giter VIP logo

prinsepkiosk's Introduction

#Prinsep Kiosk Room A system to manage the SMU Prinsep Hostel's Kiosk Room Equipment.

Preview: alt tag

##Usage You have to log in with your Facebook account Once you're in, you can:

  • Request items by clicking on Borrow - The RS on kiosk duty will need to approve your request before they can hand over the item to you in the kiosk room
  • Request RS Access - It will only be approved if you become an RS

As an RS on the system, you can:

  • Add items - Add new items that are added to the kiosk room
  • Change items - Update the information of existing items
  • Delete items
  • Give items - Approve loan requests made by other residents
  • Reject requests
  • Collect items - Collect items once the residents give them back

As an HMT on the system, you can:

  • Grant RS Access
  • Reject RS Access
  • Revoke RS Access

##Development Role management and the workflow of loaning items is pretty straightforward. What cannot be changed straight from the website though are:

  • The members of the Hostel Management Team
  • Item types ["Electronic", "Sport", "Board", "Event"]
  • Item locations ["Game Shelf", "Electronics Shelf", "Window Corner", "Plug Corner", "Racks", "Floor Shelves"]

If the above have to be changed, it can be done by:

  • Hostel Management Team - Add new HMT's facebook IDs into the array HMT_FACEBOOK_IDS in /server/accounts.js
  • Item types - Add new item into in /client/prinsepkiosk.html Item locations - Add new location into the in /client/prinsepkiosk.html AND add new images (JPG/PNG files) of the new locations in /public/mapitems/ with file names the same as the option values

###Database The mongodb database has to be constantly backed up in case data gets corrupted or goes missing. To conduct backups and restores, mongoDB must be installed on your PC and you must have access to mongodump and mongorestore on your shell

####Backup To run a backup, you will need a directory on your system, where you will store your backup dumps. Let's called this BACKUPDIR. Once you have that, on your shell, run

meteor mongo -url prinsepkiosk.meteor.com

You will be supplied with credentials in the format

mongodb://client:PASSWORD@server:PORT/prinsepkiosk_meteor_com

Within 1 minute (no jokes), run the following command on your shell

mongodump -u client -p PASSWORD -h server:PORT -d prinsepkiosk_meteor_com -o BACKUPDIR

You should see a scrolling window and new files in your backup dir if the backup was successful

####Restore To run a restore, run the following command on your shell

meteor mongo -url prinsepkiosk.meteor.com

With your credentials, within 1 minute (no seriously, go read the Meteor docs), run

mongorestore -u client -p PASSWORD -h server:PORT -d prinsepkiosk_meteor_com -o BACKUPDIR/prinsep_meteor_com

Go check prinsepkiosk.meteor.com to confirm the restore happened

prinsepkiosk's People

Contributors

abhilashmurthy avatar

Stargazers

Suresh Subramaniam avatar

Watchers

James Cloos avatar Suresh Subramaniam 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.