Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tom-weatherhead/teapot-server
An HTTP teapot server
https://github.com/tom-weatherhead/teapot-server
Last synced: about 8 hours ago
JSON representation
An HTTP teapot server
- Host: GitHub
- URL: https://github.com/tom-weatherhead/teapot-server
- Owner: tom-weatherhead
- License: mit
- Created: 2017-08-12T23:53:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T10:35:50.000Z (about 7 years ago)
- Last Synced: 2024-10-13T17:23:20.809Z (about 1 month ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# teapot-server
[![build status](https://secure.travis-ci.org/tom-weatherhead/teapot-server.svg)](http://travis-ci.org/tom-weatherhead/teapot-server) [![downloads](https://img.shields.io/npm/dt/teapot-server.svg)](https://www.npmjs.com/package/teapot-server)
An HTTP teapot server
Git installation instructions:
$ git clone https://github.com/tom-weatherhead/teapot-server.git
$ cd teapot-server
$ npm install -g grunt
$ npm install
$ gruntNote: 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 https://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol
See also http://www.rfc-base.org/rfc-2324.html