/heroku101

Project for Heroku 101 Talk for UVic Webdev Club

Primary LanguageJavaScript

Heroku 101 — Twitter Stream in Node.js

This is the sample project that was used by the sendwithus team during the UVic Webdev club talk on Tuesday November 25, 2014.

Link to Demo

Note: this code was only tested on Mac OSX and Ubuntu, but the instructions should be similar on Windows.

Requirements

There are a few basic requirements needed to deploy this project to Heroku:

Here are some links if you get stuck:

  1. Clone This Repository

# Navigate to a directory of your choice
cd /my/directory/of/choice

# Clone the repository from Github
git clone git@github.com:sendwithus/heroku101.git

# Navigate into heroku101 repository
cd heroku101
  1. Install NPM Dependencies

# Install requirements listed in package.json
npm install
  1. Run the Server with Foreman

# Foreman is part of the Heroku Toolbelt
foreman start -f Procfile

Deploying to Heroku

# Log into heroku toolbelt
heroku login

# Add Git remote to point to heroku
git remote add heroku git@heroku.com:my-app-name.git

# Commit changes to Git
git add -A
git commit -m "I made some changes"
git push heroku master