progrid.io server has a pretty slick Vagrant-based development environment packaged and ready to go. Learn more about how Vagrant benefits you.
You need these things installed on your machine to get started:
- Vagrant
- Virtualbox
- Make (included by default in any Unix-like OS)
Windows users: we have tried GnuWin32 and it works fine
To spawn a fully-functioning development environment all you have to do is run:
# inside the project directory
vagrant upThis gives you an Ubuntu 14.04 LTS guest machine with
- Node.JS and npm
- Redis
- progrid.io server running at http://localhost:9001
Your entire project directory is rsynced one time to the guest machine. Changes to the following folders are updated live on the guest machine as you work on them:
lib/test/site/
Every time you change a file in lib/, the progrid.io server process is
automatically restarted
All commands are run inside the project directory. Refer to the Vagrant Command-Line Interface Documentation for a full list of Vagrant commands.
spawns vagrant development environment
completely deletes your vagrant development environment and cleans up after itself
run commands inside the guest machine
Every time you modify the package.json and change progrid.io server’s
dependencies, you must update the guest machine’s slug with make install. This
command will:
- use rsync to sync the new package.json with the updated list of dependencies to the guest machine.
npm pruneto get rid of any unused dependencies.npm installto install any new dependencies.
Live tail of the server log files. Useful for debugging purposes. Logs are
located at var/log/node.log on the guest machine FYI.
runs progrid.io server’s Mocha test suite.
runs JSHint on the .js files inside lib/ and test/.
Any time you make edits outside of lib/, test/, or site/ you must sync
these changes over to the guest machine. You will not have to use this command
very often however.
progrid.io server is only half of progrid.io. You need a progrid.io client to connect to your server.
Opening an issue is the fastest way to get help. You can also try pinging Austin Pray (@austinpray) on Twitter.
