This is Firefox Kias Application which parse Ministry of health and family welfare website and display same on application
This is a node js
, javascript
application which crawl Ministry of Healthand Family WelfareGovernment of India
(https://www.mohfw.gov.in/) website
and fetch latest data available there and store same in application . And same is visible on application
initial setup require to have latest [node js
] and [npm
] (https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04) and KaiOS setup.
Install npm in project folder npm install
to download project dependencies.
Latest COVID-19 Stastics is updated periodically on Ministry of Healthand Family WelfareGovernment of India
(https://www.mohfw.gov.in/) website .
This application crawl website and parse data present over thier. If structure of website changes the application code needs to be changed accordingly.
To crawl latest data type node crawler.js
command on console it will take latest data .
Import the app into the App Manager. Then you can run it in the simulator, or in a Firefox OS device.
The manifest.webapp
file contains metadata about the app, such as its name, description, icon and required permissions for running under Firefox OS.
Moving over to index.html
, this is the starting point for the app when it's launched, and also where the layout is defined and the JavaScript files with the functionality and logic are loaded.
The appearance is defined in css/app.css
. There are just some very basic rules.
We define the app's behaviour in js/app.js
and js/kios
.