FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

alienatix/node-js-sample: A barebones Node.js app using the Express framework. · GitHub

 
 

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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.

Running Tests

This fork includes an automated test suite powered by Jest and Supertest.

npm test

The default test verifies that a GET / request responds with Hello World!. Feel free to add your own tests in files ending with .test.js or inside a __tests__/ directory – Jest will discover them automatically.

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:

Documentation

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

About

A barebones Node.js app using the Express framework.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL