New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coaster

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coaster

Routing framework for Node.js

0.1.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

router

FAQs

Package last updated on 14 Sep 2015

Did you know?

Socket

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