Meego Wiki
Views

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

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "==Introduction== QA Dashboard is a [http://nodejs.org/ Node.js] application. It is written in [http://jashkenas.github.com/coffee-script/ coffee-script] and uses [http://www.mon...")
m
Line 26: Line 26:
QA Dashboard repository includes a default mongodb dump which can be used to populate the database.
QA Dashboard repository includes a default mongodb dump which can be used to populate the database.
#<tt> $ cd qa-dashboard</tt>
#<tt> $ cd qa-dashboard</tt>
-
#<tt> $ mongoimport</tt>
+
#<tt> $ mongorestore</tt>
==Run the tests and start the server==
==Run the tests and start the server==

Revision as of 14:48, 14 April 2011

Contents

Introduction

QA Dashboard 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 git://github.com/isaacs/npm.git
  2. $ cd npm
  3. $ git checkout v1.0.1rc7
  4. $ sudo make install

Install mongodb

  1. $ sudo apt-get install mongodb

Set up QA Dashboard

QA Dashboard repository includes a default mongodb dump which can be used to populate the database.

  1. $ cd qa-dashboard
  2. $ mongorestore

Run the tests and start the server

  1. Run unit tests: $ ./run-nodeunit.sh
  2. Start the server: $ ./run-server.sh
  3. Browse to http://localhost:3030

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

Personal tools