You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

# node-js-getting-started
11 years ago
A barebones Node.js app using [Express 4](http://expressjs.com/).
11 years ago
This application supports the [Getting Started on Heroku with Node.js](https://devcenter.heroku.com/articles/getting-started-with-nodejs) article - check it out.
10 years ago
11 years ago
## Running Locally
Make sure you have [Node.js](http://nodejs.org/) and the [Heroku CLI](https://cli.heroku.com/) installed.
11 years ago
```sh
$ git clone https://github.com/heroku/node-js-getting-started.git # or clone your own fork
10 years ago
$ cd node-js-getting-started
$ npm install
$ npm start
11 years ago
```
Your app should now be running on [localhost:5000](http://localhost:5000/).
## Deploying to Heroku
```
10 years ago
$ heroku create
$ git push heroku main
10 years ago
$ heroku open
```
9 years ago
or
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)
## Documentation
For more information about using Node.js on Heroku, see these Dev Center articles:
- [Getting Started on Heroku with Node.js](https://devcenter.heroku.com/articles/getting-started-with-nodejs)
- [Heroku Node.js Support](https://devcenter.heroku.com/articles/nodejs-support)
10 years ago
- [Node.js on Heroku](https://devcenter.heroku.com/categories/nodejs)
10 years ago
- [Best Practices for Node.js Development](https://devcenter.heroku.com/articles/node-best-practices)
- [Using WebSockets on Heroku with Node.js](https://devcenter.heroku.com/articles/node-websockets)