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.
Please view the latest demo at https://sikher.github.io/igurbani/
- Access to
Terminal
or the command-line - Git: http://git-scm.com/downloads
- Node.js: http://nodejs.org/
-
Download this repo
-
Navigate to the repo in
Terminal
usingcd
-
Run
npm install
to install all the dependencies through Node.jsYou should see something like: up to date, audited 11 packages in 780ms 3 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
-
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":"https://api.sikher.com/"}
-
Now each time you add or modify the css or js files, please remember to:
- Run
npm run build
ornpm run dev
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)
- Run
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:///
- 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)