Although the install process went smoothly, I decided to automate some of the process with the
If you don’t have VirtualBox installed, download and install it.
Grab this Vagrantfile and save it to a new folder that you’ll use to develop your MapD Charting application.
Run these commands:
E:\mapd\v3> vagrant up
NOTE: The above step may take 20 minutes and you will see WARN. This is fine. During the 20 minutes, you will see a screen like this and it may not change for around 4 minutes.
You will also see a bunch of WARN messages and the screen may stay on this message for several minutes. Keep waiting until the install succeeds or there is a clear failure and you’re back at the command prompt.
E:\mapd\v3> vagrant ssh
You will see a bash shell
Using the bash command line, cd into mapd-charting and run:
sudo npm run start
You will see this:
On your Windows computer, open up a browser and go to
Click on example
Click on a demo
As I don’t normally edit the Vagrantfile, this will be a learning experience for me.
Vagrantfile on my Windows workstation prior to creating a new box.
# Every Vagrant development environment requires a box.
config.vm.box = “bento/ubuntu-16.04”
# By default MapD Charting runs on port 8081
config.vm.network “forwarded_port”, guest: 8081, host: 8081, host_ip: “127.0.0.1”
Using bash script to automate provisioning
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
## running shell script
config.vm.provision “shell”, inline: <<-SHELL
apt-get install -y npm
npm install -g n
git clone https://github.com/mapd/mapd-charting.gitcd mapd-charting
npm install mapbox-gl@https://github.com/mapd/mapbox-gl-js/tarball/9c04de6949fe498c8c79f5c0627dfd6d6321f307
The above configuration is in
vagrant up to test provisioning.
sudo npm run start
Demos work on the Windows 10 Edge browser.
At the moment, the performance seems fine on my slow machine with quad core i7 and 16Mb of physical RAM on my Windows 10 workstation. If you want to run MapD Core natively on Windows, here are two blogs that describe installing MapD Charting on Windows without using Vagrant:
To use MapD Charting in Vagrant with development tools on Windows, you need to start the cmd prompt as Administrator. You then need to install MapD Charting into the
/vagrant/ folder in the Linux guest VM.
Download this Vagrantfile.
Start a Command Prompt as Administrator.
vagrant up to provision the new VM.
After you log into the Linux VM with
After you start the demos, you can start an editor or IDE on Windows 10 and access the development files inside of the Linux VM. The Linux
vagrant folder is shared with your Windows filesystem.