Meego Wiki
Views

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

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "==Introduction== Crash Reports is a [http://nodejs.org/ Node.js] application. It is written in [http://jashkenas.github.com/coffee-script/ coffee-script] and uses [http://www.mo...")
Line 36: Line 36:
==Start the server==
==Start the server==
#Start the server:<tt> $ ./run-server.sh</tt>
#Start the server:<tt> $ ./run-server.sh</tt>
-
#By default the server can be reached at http://localhost:3040
 
 +
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.
The server will start in development mode using node-supervisor, which watches for code changes and restarts the server accordingly.

Revision as of 11:46, 1 June 2011

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

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.

Personal tools