Socket
Socket
Sign inDemoInstall

coaster

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    coaster

Routing framework for Node.js


Version published
Weekly downloads
1
Maintainers
1
Install size
891 kB
Created
Weekly downloads
 

Readme

Source

Build Status

Coaster.js

Coaster.js is a tiny web framework that provides a template engine (underscore) and some basic restful abstractions to help you to handle all your favorite HTTP requests, including GET, POST, PUT, PATCH and DELETE with the utmost ease.

Installation Instructions

npm install coaster

Basic Usage

mkdir <app_name>
cd <app_name>
touch app.js
mkdir templates

in your app.js file, type the following to get started:


var Coaster = require('./lib/coaster');
var app = new Coaster();
var port = process.argv[2] || 5000;
app.define('/test', function(req, res) {
    res.send('This is a test of /test');
});

app.listen(port);

Then run your app with node app.js and open a webbrowser to localhost:5000/test.

Keywords

FAQs

Last updated on 14 Sep 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc