It's recommended to use Vagrant and VirtualBox in order to achieve consistent development environment across all contributors.
-
Download and install latest VirtualBox.
-
Download and install latest Vagrant.
-
Clone GitHub repo:
$ git clone https://github.com/apiaryio/dredd $ cd dredd -
Import the Vagrant box:
$ vagrant box add precise64 http://files.vagrantup.com/precise64.box
-
Start virtual development environment:
$ vagrant up
Note: You may be prompted to enter your root password due to exporting shared folder over NFS to the virtual machine.
-
SSH to the virtual development environment:
$ vagrant ssh
-
You will find your project shared in
/vagrantinside the virtual environment:$ cd /vagrant -
Use your favorite local editor in your local folder to edit the code and run tests in the virtual environment:
$ npm install && npm test