Introduction
Crash Reports is a Node.js application. It is written in coffee-script and uses mongodb database. You need to install some awesome open source tools to get the development environment up and running.
Install Node.js
(uses v0.4.5 stable package)
- $ wget http://nodejs.org/dist/node-v0.4.5.tar.gz
- $ gunzip node-v0.4.5.tar.gz
- $ tar -xf node-v0.4.5.tar
- $ cd node-v0.4.5
- $ ./configure
- $ make
- $ sudo make install
Install Node Package Manager
(uses v1.0.1rc7 stable branch)
- $ git clone https://github.com/isaacs/npm.git
- $ cd npm
- $ git checkout v1.0.1rc7
- $ sudo make install
If your environment does not allow git protocol, make install will fail because of fetching the submodules. This can be fixed by changing the submodule URLs:
- $ git config submodule.node_modules/abbrev.url https://github.com/isaacs/abbrev-js.git
- $ git config submodule.node_modules/nopt.url https://github.com/isaacs/nopt.git
- $ git config submodule.node_modules/semver.url https://github.com/isaacs/node-semver.git
Install mongodb
- $ sudo apt-get install mongodb
Set up Crash Reports
Get the source and install dependencies
- $ git clone git://gitorious.org/meego-quality-assurance/crash-reports.git
- $ cd crash-reports
- $ npm install
Start the server
- Start the server: $ ./run-server.sh
By default the server can be reached at http://localhost:3040
The server will start in development mode using node-supervisor, which watches for code changes and restarts the server accordingly.