::: {.spelling} Nitro nitro jandal rvm :::
Nitro
I liked the old version of nitro, but it had been superseded by a less handy version and i also found a replacement based on my google account : https://www.gqueues.com/
In compiling and reinstalling the old nitro implementation a lot of information was gathered that we might need at some later point.
the application
A very quick way of maintaining task lists on a web interface. However there are a few quirks and therefore i want to install it from scratch.
There is a new and an old version, and i like the old version better :
- because it's look and feel are better
- because it has dropbox support
- it is better adaptable
So there is two parts in this document but i advise you to stick with part 1 (version 1.5) and leave part2 (v2 ?) as informational (and incomplete !)
nitro 1.5
The sources can be found on https://github.com/CaffeinatedCode/nitro/tree/1.5x and choose branch v1.5.
However i already did this and altered and checked in the code at bitbucket. But it has been superseded by queues so i moved it into the inactive source tree as a subdirectory :
git@bitbucket.org:keesklopt/inactive.git
Main changes :
- removed the "new task' string
- new priority scheme with different colors
compilation
In short : if you want to change the code, don't touch plugins.js because it is generated, and overwritten by the command :
So edit all the other js files !
Similarly the files in sass are overwritten and compiled into the css/* files with the command: (well ??) Maybe first you need to update to the correct ruby version, for that you need to install rvm : https://rvm.io/rvm/install (read it through, it's not a one-liner)
Then you can install ruby 2 with :
then :
You have to be in the directory above sass, where you can reach both sass and css. Now load the extension in chrome with "more tools" -> extensions -> (enable development mode) -> load unpacked extension.
Yes, for now you have to do that on every machine once until i found a way to get it into the app store as private app.
nitro 2
The sources are located here : https://github.com/CaffeinatedCode/nitro
So a checkout would be :
| changetitle | |
|---|---|
Just follow the guides there for the most part. However you will not be able to get through the firewall wit the
| changetitle | |
|---|---|
Now we are still left with the problem of jandal, which has altered it's interface. If you get stuck with a big Nitro sign on the server page : http://localhost:9294
This is probably the problem. We could alter the sources to reflect the changes or choose the easy way and go back to jandal@0.0.14 which did not have the problem.
Alter packages.json and find the entry for jandal and change it to:
| changetitle | |
|---|---|
Now of course you need to do npm install first.` Next you won't have a css files. You will need sass compiler to generate it :
| changetitle | |
|---|---|
Gem of course means you need ruby installed. Now compile with :
Next problem is you get a connection error. Look on the javascript console for :
| changetitle | |
|---|---|
This is because the server given is a test server, and the official server is off line. See next section
Installing server
Disclaimer: i did not get this running but spent a lot of time trying. So this is more a manual for trying a later time, the info is very helpful for that.
To get the server running locally on some port, you will need to install the server. Note that the master does not contain the app directory even though it is the newest. So i opted for the v2.1.0 branch
| changetitle | |
|---|---|
However this won't work with the nodejs version i used. So reverting to an even earlier version of nodejs (errors with 0.10.29 suggest 0.8.x) :
| changetitle | |
|---|---|
If n is not installed first do :
| changetitle | |
|---|---|
However as i stated earlier, we now get stuck at :
coffee app/init.coffee
[Keychain] Could not load keychain
[Keychain] Key not found for 'sql_type'
[Keychain] Key not found for 'sql_host'
[Keychain] Key not found for 'sql_port'
[Keychain] Key not found for 'sql_user'
[Keychain] Key not found for 'sql_pass'
[Keychain] Key not found for 'sql_db'
[Keychain] Key not found for 'email_user'
[Keychain] Key not found for 'email_pass'
[Router] POST /login
[Router] POST /register
[Router] GET /reset
[Router] POST /reset
[Router] GET /reset/:token
[Router] POST /reset/:token
[Router] GET /
[Router] GET /*
TypeError: Object function Socket(socket, handle) {
Socket.__super__.call(this);
// public properties
this.rooms = [];
this.broadcast = Broadcast.bind(this);
// private properties
this._namespaces = {};
this._callbacks = new Callbacks(this.namespace('socket'));
this._message = new Message(this._callbacks);
this.join('all');
// Set up socket and handle
if (socket) this.connect(socket, handle);
} has no method 'handle'
at Object.<anonymous> (/home/kees/projects/nitro-server/app/controllers/socket.coffee:31:10)
at Object.<anonymous> (/home/kees/projects/nitro-server/app/controllers/socket.coffee:598:4)
at Module._compile (module.js:456:26)
at Object.require.extensions..coffee (/usr/lib/coffee-script/lib/coffee-script/coffee-script.js:30:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/kees/projects/nitro-server/app/init.coffee:17:12)
at Object.<anonymous> (/home/kees/projects/nitro-server/app/init.coffee:49:4)
✘-1 ~/projects/nitro-server [v2.1.0|✔]