Giter Site home page Giter Site logo

node-js-sample's Introduction

This repository is no longer maintained!

For the most up to date test app to get you started on Heroku, head on over to node-js-getting-started.


node-js-sample

A barebones Node.js app using Express 4.

Running Locally

Make sure you have Node.js and the Heroku Toolbelt installed.

git clone [email protected]:heroku/node-js-sample.git # or clone your own fork
cd node-js-sample
npm install
npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

heroku create
git push heroku master
heroku open

Alternatively, you can deploy your own copy of the app using the web-based flow:

Deploy to Heroku

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles:

node-js-sample's People

Contributors

danielleadams avatar djkmiles avatar jmorrell avatar mattcreager avatar saadq avatar samccone avatar zeke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-js-sample's Issues

npm-shrink wrap confusing

Is the shrinkwrap file necessary? Imagine my frustration when heroku failed to find a new module I installed and added to package.json, because the shrinkwrap file had already fixed the plugins in time. Took quite a while to realize what was going on.

Is node_modules necessary?

You typically want to add the node_modules directory to your .gitignore file. Keeping dependencies tracked usually isn't necessary when you already have them listed in your package.json.

Anyone cloning the repository should already know (or be instructed to) run npm install after cloning.

Button does not work

Hello!

When I click button in this repo I get:

No app-5c96aa6a5be707f4ff05e1d8c66f0570.json located in the repo URL provided.
Make sure that an app-5c96aa6a5be707f4ff05e1d8c66f0570.json file exists in the project root directory.

centrifugal/centrifugo#14

node-js-sample fails git push due to shrinkwrap hard coded ip address host down

The hard coded ip address in npm-shrinkwrap.json is not responding. This results in git push to fail with a timeout error message after a long delay.

remote: -----> Building dependencies
remote: Pruning any extraneous modules
remote: Installing node modules (package.json + shrinkwrap)
remote: npm ERR! fetch failed http://174.129.255.150:4873/mime-types/-/mime-types-2.0.10.tgz
remote: npm ERR! fetch failed http://174.129.255.150:4873/mime-types/-/mime-types-2.0.10.tgz
remote: npm ERR! fetch failed http://174.129.255.150:4873/mime-types/-/mime-types-2.0.10.tgz
remote: npm ERR! Linux 3.13.0-61-generic
remote: npm ERR! argv "/tmp/build_255e09f531e5b58d25519c3549f33d3e/.heroku/node/bin/node" "/tmp/build_255e09f531e5b58d25519c3549f33d3e/.h
eroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_255e09f531e5b58d25519c3549f33d3e/.npmrc"
remote: npm ERR! node v0.12.2
remote: npm ERR! npm v2.7.4
remote: npm ERR! code ETIMEDOUT

I tried to ping the host and it appears down:

[0 ubuntu@somehost ~/proj/bitstarter]$ nmap -p 4873 174.129.255.150
Starting Nmap 6.40 ( http://nmap.org ) at 2015-08-28 12:42 PDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.03 seconds

The host appears to be an aws ip:
150.255.129.174.in-addr.arpa domain name pointer ec2-174-129-255-150.compute-1.amazonaws.com

Can we please have this fixed so we can get on with our heroku learning? ;) This was working like 1-2 weeks ago.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.