Development happens in the develop branch, while the latest stable version is
in the master branch.
The easiest way to get started on hacking on OffiX is to use Vagrant and run everything inside a virtual machine.
Make sure you have Vagrant installed on your machine.
To start the VM:
vagrant upIf you need to power off the VM at any point, run:
vagrant haltTo ssh into the VM:
vagrant sshNote: the rest of the commands in this section are meant to be run inside the VM, not on the host machine.
The project directory gets synchronized to /offix inside the VM.
The sniffer can't really be developed inside the VM because it depends on WiFi hardware.
There are plans to add a testing mode to the sniffer so it will generate fake data to aid in development of the web interface.
Before running the OffiX web interface, set up the configuration and install dependencies as follows:
cd /offix/offix-web
cp config.sample.js config.js # these are okay defaults for development
npm installAfter this, you're ready to run OffiX:
npm startNow, on your local machine, you should be able to navigate to
http://localhost:3000/ and see OffiX running!
-
While developing, you should keep
vagrant rsync-autorunning on the host machine so that whenever you change any files, they're automatically synced over to the VM. When the app running in the VM detects changed files, it'll automatically restart (because of the debug flag). -
This project uses EditorConfig. Download a plugin for your editor!