Meego Wiki
Views

Quality/QA-tools/CrashReports/Setting up the development environment

From MeeGo wiki
Jump to: navigation, search

Contents

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)

  1. $ wget http://nodejs.org/dist/node-v0.4.5.tar.gz
  2. $ gunzip node-v0.4.5.tar.gz
  3. $ tar -xf node-v0.4.5.tar
  4. $ cd node-v0.4.5
  5. $ ./configure
  6. $ make
  7. $ sudo make install

Install Node Package Manager

(uses v1.0.1rc7 stable branch)

  1. $ git clone https://github.com/isaacs/npm.git
  2. $ cd npm
  3. $ git checkout v1.0.1rc7
  4. $ 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:

  1. $ git config submodule.node_modules/abbrev.url https://github.com/isaacs/abbrev-js.git
  2. $ git config submodule.node_modules/nopt.url https://github.com/isaacs/nopt.git
  3. $ git config submodule.node_modules/semver.url https://github.com/isaacs/node-semver.git

Install mongodb

  1. $ sudo apt-get install mongodb

Set up Crash Reports

Get the source and install dependencies

  1. $ git clone git://gitorious.org/meego-quality-assurance/crash-reports.git
  2. $ cd crash-reports
  3. $ npm install

Start the server

  1. Start the server: $ ./run-server.sh
  2. Browse to http://localhost:3040 to verify that server is running

The server will start in development mode using node-supervisor, which watches for code changes and restarts the server accordingly.

Personal tools