as3923 / setup

AWS EC2 setup files for Startup Engineering MOOC.

Home Page:http://coursera.org/course/startup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup.git

Clone and run this on a new EC2 instance running Ubuntu 12.04.2 LTS to configure both the machine and your individual development environment as follows:

cd $HOME
curl https://raw.github.com/shenan1984/setup/master/setup.sh | sh

# Load nvm and install latest production node
curl https://raw.github.com/creationix/nvm/master/install.sh | sh

See also http://github.com/startup-class/dotfiles and Startup Engineering Video Lectures 4a/4b for more details.

MEAN stack installation notes

After setup, LOGOUT then LOGIN. Then create a new Project install packages, bower, and configure git and heroku.

# Load nvm and install latest production node
source $HOME/.nvm/nvm.sh
nvm install v0.10.20
nvm use v0.10.20

# setup github repo first if needed
mkdir $HOME/"Project"; cd "Project"
git config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
git init
git remote add origin https://github.com/"user/repo".git
heroku login

curl https://raw.github.com/shenan1984/setup/master/mean_stack.sh | sh

Push to git and heroku

git add .
git add -f public/lib
git push origin master
git push heroku master
heroku config:push

Add SSH Key if necessary: https://help.github.com/articles/generating-ssh-keys

Configure MongoHQ from a browser:

  • Add first user. (Apart from default heroku)

Then use mongodb://<user>:<password>@paulo.mongohq.com:10088/<app_name>:

  • Update MONGOHQ_URL in .env
  • Update development:{db} in config/config.js

About

AWS EC2 setup files for Startup Engineering MOOC.

http://coursera.org/course/startup


Languages

Language:Shell 100.0%