All Projects → cbumgard → Nodejs Vagrant

cbumgard / Nodejs Vagrant

Licence: mit

Labels

Projects that are alternatives of or similar to Nodejs Vagrant

Vim Plugin Viewdoc
Vim plugin: flexible viewer for any documentation
Stars: ✭ 79 (-8.14%)
Mutual labels:  viml
Incsearch Easymotion.vim
Stars: ✭ 82 (-4.65%)
Mutual labels:  viml
Jekyll.vim
Automate common Jekyll tasks from Vim
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml
Rocannon
Vim for Ansible playbooks: omni-completion, abbreviations, syntax, folding, K-docs, and colorscheme
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Vim Reload
Automatic reloading of Vim scripts ((file-type) plug-ins, auto-load/syntax/indent scripts, color schemes)
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Use vim as ide
use vim as IDE
Stars: ✭ 9,067 (+10443.02%)
Mutual labels:  viml
Cmake.vim
🔨 CMake functionality within Vim.
Stars: ✭ 76 (-11.63%)
Mutual labels:  viml
Vim Jira Complete
AutoComplete JIRA issues in Vim
Stars: ✭ 85 (-1.16%)
Mutual labels:  viml
Closetag.vim
Functions and mappings to close open HTML/XML tags
Stars: ✭ 81 (-5.81%)
Mutual labels:  viml
Languagetool
Grammar checker for English, French, German (etc.) in Vim
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml
Vim Statline
Add useful informations to Vim statusline
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Vimtodo
Vim TODO manager
Stars: ✭ 80 (-6.98%)
Mutual labels:  viml
Vimrc
Meteor/Web development centric vim config
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml
Vim Pomodoro
Vim plugin for the Pomodoro time management technique
Stars: ✭ 79 (-8.14%)
Mutual labels:  viml
Jasmine.vim
Jasmine Plugin for Vim
Stars: ✭ 84 (-2.33%)
Mutual labels:  viml
Conoline.vim
Highlights the line of the cursor only in the current window.
Stars: ✭ 79 (-8.14%)
Mutual labels:  viml
Vim Symfony
A vim plugin to handle symfony and all that stuff
Stars: ✭ 82 (-4.65%)
Mutual labels:  viml
Vim
Stars: ✭ 85 (-1.16%)
Mutual labels:  viml
Vim Task
vim task plugin
Stars: ✭ 84 (-2.33%)
Mutual labels:  viml
Learn Vim
无废话极简版Vim学习笔记!文章按主题分拆为多个章节,并尽量控制每节的信息量;通过文字色彩和字体,将命令、快捷键突出显示;在每节结尾,提供一个命令列表,以便回顾文中介绍的重要命令。如果这些文章能对喜欢Vim的朋友有所益处,我将不胜荣幸。
Stars: ✭ 83 (-3.49%)
Mutual labels:  viml

nodejs-vagrant

Provisions a clean Ubuntu 12.04 32-bit server instance with all needed Node.js development tools (Node.js, git, vim); services (MongoDB, Redis, GitHub, Heroku, Travis-CI).

Install Vagrant & VirtualBox

Install Vagrant 1.5:

http://vagrantup.com

Install VirtualBox:

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

Setup Option 1: Box

mkdir DIR && cd DIR
vagrant init cbumgard/nodejs
vagrant up
vagrant ssh

Done!

For more see: https://vagrantcloud.com/cbumgard/nodejs

Setup Option 2: Vagrantfile

git clone [email protected]:cbumgard/nodejs-vagrant.git
cd nodejs-vagrant
vagrant up
vagrant ssh

Done!

Post-Setup

Vagrant user

By default the vagrant user is configured with password 'vagrant'. The vagrant user is also configured for password-less sudo.

Edit code on host machine, build in VM

Your ~/ home directory on your host machine is synced to the /host/ directory inside of Vagrant. So for example you can edit code in ~/code/ on your laptop and build it inside a Vagrant shell inside /host/code.

Networking:

Configured for private network on static IP: 192.168.33.10, with port :3000 forwarded.

So from a web browser you have two ways of accessing a node.js process for example running on port 3000 on the VM:

  • localhost:3000
  • 192.168.33.10:3000

Additionally for convenience, append this line to your /etc/hosts file:

192.168.33.10 vagrant.localhost

Services

MongoDB & Redis

Verify from CLI by running mongo and redis-cli.

GitHub

ssh-keygen -t rsa
(Copy the contents of ~/.ssh/id_rsa.pub into your GitHub account: https://github.com/settings/ssh)
git config --global user.name '<your name>'
git config --global user.email <your email>

Heroku

Run the following commands to finish setting up Heroku:
heroku login
heroku keys:add

Travis-CI

travis login or travis login --pro

Troubleshooting

Included is a script ./sh/repair-mac.sh that fixes the problem that occurs (usually after a forced reboot) where the following error shows up on 'vagrant up':

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 66 of file VBoxManageHostonly.cpp

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].