Configuring Vagrant for MapD Charting

After hearing that installing MapD Charting on Windows was as bit cumbersome, I used Vagrant to install MapD Charting on Windows.

Although the install process went smoothly, I decided to automate some of the process with the Vagrantfile.

Quick Start

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.

automatic cloning of mapd-charting to your local computer

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

vagrant@vagrant:~$ ls
mapd-charting
vagrant@vagrant:~$

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 http://127.0.0.1:8081/example/

Click on example

Click on a demo

Work Log

I’m editing Vagrantfile on my Windows workstation prior to creating a new box.

Specify vm.box

Configure forwarded_port

Using bash script to automate provisioning

Testing

run vagrant up to test provisioning.

running sudo npm run start

Demos work on the Windows 10 Edge browser.

Performance

Development

Using VS Code to develop MapD Charting applications

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.

Start the Command Prompt as administrator

Type vagrant up to provision the new VM.

After you log into the Linux VM with vagrant ssh, cd into /vagrant/

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.

Exploring the potential of blockchain and big data. Trying out blockchain technologies, big data infrastructure, visualization, and storage technology.