Drinking the Kool Aid with the Yo…eman

Recently I felt a project may need to get running with a new code base super-fast, so in my investigation for a quick start I stumbled across the Yeoman nodeJS project. Also, Full Stack AngularJS [https://github.com/DaftMonk/generator-angular-fullstack] which is turning out pretty awesome.

These are proper Mountain Dew code projects, however there are a few gotchas in setting it up on Mac OSX Mavericks if your dev work  hasn’t served you up enough Kool Aid recently.

So..

Create a working folder

mkdir newProject && cd $_

Install Brew

Install brew [http://brew.sh/], this makes it much easier to install more cool aid packages on your machine

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install Node

http://nodejs.org/, The server this all runs from

brew install node

Install bower

http://bower.io/, A Package manager from Twitter

npm install -g bower

Install the DB

https://www.mongodb.org/, A NoSQL database

brew install mongodb

Allows mongo to start (it kept erroring)
sudo mkdir -p /data/db/
sudo chown id -u /data/db

Install Yoeman

http://yeoman.io/, a scaffolding tool to make every project start well

npm install -g yo

Angular and mongo yeoman installer

npm install -g generator-angular-fullstack

Install the Project Scaffold

Just follow the instructions, use [Space] to select and Hit [Enter] to confirm
yo angular-fullstack

It’s possible you’ll then need to run

npm install
bower install

and then to make it all run together,

Starts MongoDB

mongod

Then in another terminal tab on the same folder [Cmd+T], starts the server and shows you what you just installed!

grunt serve

view raw
gistfile1.md
hosted with ❤ by GitHub

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s