Gold Rush is a web framework for a backend server running on chrome apps. This means that anywhere Chrome(desktop) can run, Gold Rush can run too. Getting node installed simple to test a few backend snippets doesn't make sense. Instead, making a small chrome app server is much easier and faster. Though, before this framework, there were no easy ways to make a chrome app server; the only way to make a server was through raw sockets. With this framework, a new adaptable server can be up in minutes.
Sinatra, Express and Martini are the models this framework tries to emulate. The goal of this project is to make this framework easy enough to switch out for any of these(though express will obviously be the easiest).
In short, Socket Api.
For just playing around, installing a basic app and debugging can be helpful to learn the framework.
In order to debug/play aroung with the app, go to chrome://inspect/#apps, and inspect Gold Rush. Then you should have a debug window that has access to the api.
For a longer term solution, clone this repo, go into chrome://extensions, enable developer mode, and click load unpacked extension. Once it is installed that way, you can edit src/main.js or open a debug window to do live coding.
Inorder to use in your existing project, simply add src/http.js and src/rush.js to your manifest as background scripts, and add the permissions.
For example, if your manifest.json looked like
{
...
"permissions": ["serial"],
"app": {
"background": {
"scripts": ["main.js"]
}
}
...
}
It would become:
{
...
"permissions": [
"serial",
{"socket": [
"tcp-connect",
"tcp-listen"]}],
"app": {
"background": {
"scripts": ["src/http.js","src/rush.js","main.js"]
}
}
...
}
Now you can use the framework freely in your app.