node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org ยป



An HTTP teapot server

Git installation instructions:

$ git clone
$ cd teapot-server
$ npm install -g grunt
$ npm install
$ grunt

Note: The command "grunt" runs lint, unit tests, and security tests.

npm Installation Instructions:

$ npm install [--save] teapot-server

To test the sample driver (server.js) of the Web server component (app.js) :

$ npm start

Then browse to http://localhost:3000 to access the main page.

An HTTP GET of http://localhost:3000/teapot will receive a response with HTTP status code 418: I'm a teapot.

The port on which the server listens can be changed in config.json ; it defaults to port 3000.


See also