Skip to content

kristofsajdak/vagrant-fig-nodejs-mongodb-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kickstart your next Nodejs-Express-Mongodb-Elasticsearch project with Vagrant and Fig. Node debugging facilities are provided through node-inspector, sources are auto-reloaded with Forever

Works on every OS where you can install Vagrant ( Windows, Mac and Linux )

Just work through the Getting Started section and you are good to go !

Getting Started

First of all, download and install the enabling software

Vagrant :

https://www.vagrantup.com/downloads

Virtualbox:

https://www.virtualbox.org/wiki/Downloads

Clone the repo and vagrant up

git clone https://github.com/kristofsajdak/vagrant-fig-nodejs-mongodb-elasticsearch
cd vagrant-fig-nodejs-mongodb-elasticsearch/provision
vagrant up

ssh into the machine, install npm dependencies and fig up

vagrant ssh
cd /vagrant && fig run web npm install && fig up -d

Express running on Nodejs :

http://192.168.50.4:8080/

node-inspector:

http://192.168.50.4:8081/debug

logs:

http://192.168.50.4:8080/logs/

Elasticsearch:

http://192.168.50.4:9200

Ad-hoc commands

ssh into the Vagrant box

vagrant ssh

cd into the /vagrant directory ( this is mapped to the directory with the Vagrantfile, and where the fig.yml, supervisord.conf and Dockerfiles are kept as well )

cd /vagrant

Launch some often required ad-hoc commands

fig run web npm prune
fig run web npm install

fig run db /bin/sh -c "mongo 192.168.50.4:27017"

About

Kickstart your next Nodejs-Express-Mongodb-Elasticsearch project with Vagrant and Fig. Node debugging facilities are provided through node-inspector, sources are auto-reloaded with Forever

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published