Skip to content

A interactive map built using d3 and meteor, wrapped in a windows-compatible vagrant box for a linux dev environment. Also includes Cadence_HD, a nodejs project for accessing and testing the meteor-local mongodb, as well as a DockerFile for automated build deployment

License

Notifications You must be signed in to change notification settings

jaxonpickett/Tempo_HD

Repository files navigation

vagrant-meteor

Vagrant configuration for a virtual machine that can run Meteor apps. Can be used on Windows, Mac OS X or Linux.

Getting started

The following instructions are optimized for Windows users.

Installation

  1. Install Cygwin with the packages openssh and rsync.
  2. Add the <CYGWIN_INSTALL_DIR>/bin folder to your PATH.
  3. Install VirtualBox.
  4. Install Vagrant (1.6.1 or newer is needed).
  5. Clone this repo to your local machine.
  6. Install and start the Vagrant VM by executing start.bat. It will take a little bit to download and install everything. Read the next part "File Synchronisation" while it installs. ;-)

File Synchronisation

The folder is synchronised to two places on the guest. Each synchronized folder has a special purpose.

Rsync - one way synchronisation for starting the Meteor app

The folder is synchronised with Rsync to the guest folder /meteor_cli.

  • You must use this folder to start the Meteor app.
  • You must use this folder for mrt add and mrt update.
  • Changes won't be synchronized back to the host and will be deleted after the next sync.

Shared Folders - two way synchronisation for file editing

The folders are also synchronised with the VirtualBox shared folder feature to the guest folders /Tempo_HD and /Cadence_HD.

  • Use this folder to make changes in the guest that should be synchronized with the host.
  • After you added or updated smart packages you must copy the smart.json and smart.lock file from /meteor_cli to /Tempo_HD with (see open issue):
cp -f /vagrant/<MY_APP>/smart.* /vagrant2/<MY_APP>/
cp -f /vagrant/<MY_APP>/.meteor/packages /vagrant2/<MY_APP>/.meteor/
  • Cannot be used to start the Meteor app.
  • Cannot be used for mrt add, mrt install or mrt update

Running Tempo

If this is your first time running vagrant:

  1. Install nodejs:

sudo rm /var/lib/apt/lists/*

It will complain about being unable to remove a "partial" directory, ignore this

sudo apt-get update

sudo apt-get install nodejs

  1. Start Meteor:

cd /meteor_cli

meteor run

  1. From a new ssh terminal, run cadence.js to populate mongo with test data:

cd /Cadence_HD

node cadence.js

  1. Navigate to localhost:3000 in your host browser!

Skip steps 1 and 3 for subsequent sessions (as long as you didn't run vagrant destroy)

Credited:

Check out the wiki for more details.

CHANGELOG

v1.0 - initial build with Docker v2.0 - included missing packages in sourcecode v2.1 - second attempt at adding missing packages

About

A interactive map built using d3 and meteor, wrapped in a windows-compatible vagrant box for a linux dev environment. Also includes Cadence_HD, a nodejs project for accessing and testing the meteor-local mongodb, as well as a DockerFile for automated build deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages