Meego Wiki
Views

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

From MeeGo wiki
Jump to: navigation, search

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