09 November 2015
I found last couple of projects little easier to handle, so today I decided to take up something that was borderline impossible to finish. But in the end it also turned out to be not so complex. Possibly because I found the right resources/tools to get going.
You can not see the today’s project in action unless you download/install it yourself on your machine. If you are interested you can do so from this repo.
Once you have downloaded:
cd
inside the foldernpm install
npm run build
to make Example.appnpm start
to run app from CLI without building Example.app packageSo today’s project was a desktop application to view live scores for ongoing cricket matches from the mac menubar. No need to visit any website. Just click the nice menu on your menubar and you will get scores for all international matches currently in progress.
It uses Cricinfo’s API. It’s not official and hence not documented. I saw they were using it to update their scores so I thought of using it as well.
Main application is built on Electron platform. Electron allows you to build native desktop applications in HTML/CSS/JavaScript. It’s pretty powerful and is undergoing rapid development.
Since I had to make menubar app, I found a package which helped me a lot in doing that. It’s appropriately called Menubar.