Code Monkey home page Code Monkey logo

igurbani's Introduction

iGurbani - A GurbaniDB API Sample App

Lovingly developed in pure HTML, CSS and JavaScript, and compatible across desktop, tablet and mobile devices - this lightweight app showcases what is possible to build upon the GurbaniDB API

This app is currently only compatible with GurbaniDB Version 2.2.

Demo

Please view the latest demo at http://sikher.github.io/igurbani/

Pre-requisites

  1. Access to Terminal or the command-line
  2. Git: http://git-scm.com/downloads
  3. Node.js: http://nodejs.org/
  4. Grunt Command Line Interface (CLI): npm install -g grunt-cli

Installation

  1. Download this repo

  2. Navigate to the repo in Terminal using cd

  3. Run npm install to install all the dependencies through Node.js

  4. Run grunt to make sure everything is installed properly. You should see something like:

     Running "uglify:my_target" (uglify) task
     Source Map "js/main.min.map" created.
     File "js/main.min.js" created.
    
     Running "cssmin:compress" (cssmin) task
     File css/main.min.css created.
     Uncompressed size: 136603 bytes.
     Compressed size: 14984 bytes gzipped (113536 bytes minified).
    
     Done, without errors.
    
  5. Finally, please modify config.json to have the correct API endpoint. To use the official GurbaniDB API you should leave it as the default (with a trailing slash /):

     {"api":"http://api.sikher.com/"}
    
  6. Now each time you add or modify the css or js files, please remember to:

    • Update your Gruntfile.js with the correct files under uglify
    • Run grunt to update your files
    • Hard refresh your browser to see the changes and to avoid caching issues with Ctrl+Shift+R (Windows/Linux) or โŒ˜+Shift+R (Mac)

Please Note: If you are planning to use this code locally then you may need to setup a local server otherwise the code may fail due to restrictions in the Same Origin Policy in some browsers when using file:///

To Do

  • Simple functions that work across all endpoints - need to add view hymn and page
  • When hovering over an author/melody, a popup dialog gives the description
  • Currently only the first 10 results are returned, can also have pagination for results
  • Add a way to update any local data if the version of the API changes (should happen in config)

igurbani's People

Watchers

SikhNerd avatar 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.