Skip to content

Instantly share code, notes, and snippets.

@darahayes
darahayes / appspec.yml
Created March 24, 2017 14:42 — forked from moshest/appspec.yml
Node.js Project on AWS CodeDeploy CentOS
version: 0.0
os: linux
files:
- source: /
destination: /home/ec2-user/node
permissions:
- object: /home/ec2-user
owner: ec2-user
group: ec2-user
type:
@darahayes
darahayes / node.md
Last active January 26, 2016 11:55
Getting started with node

#Getting Started With Node

So... Enterprise development is a little crazy. I think he managed to give us a bare idea of what we're meant to do but he left out some really important things. So this is a post for people who might not be familiar with Node.js etc.

Firstly, it can be a bit of a pain to install properly. Luckily there's a great project called nvm (node version manager) that can make the installation and management of node versions on *nix really easy. nvm can be installed in a single line. Follow the instructions to install in the link.

Once installed you can install node and npm with the following

nvm install 4.2.3 #install node
nvm use 4.2.3 #tell nvm to place the installation in the right directories