Monday, January 4, 2016

Electron

Electron - Cross Platform Development for Desktop apps

Excerpt from : http://electron.atom.io/docs/latest/tutorial/quick-start/

Electron enables you to create desktop applications with pure JavaScript by providing a runtime with rich native (operating system) APIs. You could see it as a variant of the Node.js runtime that is focused on desktop applications instead of web servers.
This doesn't mean Electron is a JavaScript binding to graphical user interface (GUI) libraries. Instead, Electron uses web pages as its GUI, so you could also see it as a minimal Chromium browser, controlled by JavaScript.



Sunday, January 3, 2016

Clear test db while running rspecs

If we end up in a situation where we find out that the 'test db' is not being cleared properly, we can do the following:
http://stackoverflow.com/questions/25877734/rails-4-resetting-test-database

bundle exec rake db:reset RAILS_ENV=test