Vagrant config and bootstrap files for setting up a virtual LDLN development environment.
Note that in the steps below [Local] indicates commands to be run on the development machine, while [VM] indicates it is to be run within the vagrant box.
- Download vagrant
- Download a VM provider, e.g. VirtualBox
- Clone this
vagrant-dev
repository
cd vagrant-dev
vagrant up
- [Local]
vagrant ssh
(orssh vagrant@localhost -p 2222
with the default password ofvagrant
) - [VM]
sudo /etc/init.d/ldln_dev_startup.sh
open -a "Visual Studio Code" ./
– the vagrant config stuff will be in the top level directory, and all LDLN modules can be found in theldln-workspace
directory, which is mapped to a VM directory (i.e. updates in the local IDE will be reflected in the VM)
- vagrant destroy
- rm -Rf ldln-basestation
- rm -Rf .vagrant
If all goes well, it should run all services necessary to simulate a deployment of a single LDLN Basestation. The web-app interface is exposed via http://localhost:9000 and the websocket interface is exposed via ws://localhost:8080/ws
Good resource on developing on serial ports with Vagrant: http://yagamy.logdown.com/posts/138888-serialport-programming-on-platform-virtual-machines
Stuck on something? Check the wiki!