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

cafesuada

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cafesuada

A CoffeeScript-based MVC framework built on top of ExpressJS.

  • 0.0.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Cafe Sua Da

A CoffeeScript-based MVC framework built on top of ExpressJS.

Features

  • Assets compilation with Grunt
  • Easy to use routing

Local Environment

Launch App

foreman start or node app.js

Default Local URL

http://localhost:5000

Configurations

boot.js

To be documented...

paths.js

You can customize the app folder names here otherwise, leave it as is.

routes.json

Enter custom routes here and route them to a specific routes file in your application directory.

To specify a route, each line should be key value where the key is the combined string of the request method and the request URI and the value is the path of your routes file relative to your application routes directory.

Sample routes.json

{
	"GET /" : "index",
	"GET /news" : "news/archive",
	"GET /news/:postid/" : "news/single",
	"POST /news/:postid/" : "news/post",
	"DELETE /news/:postid/" : "news/delete"
}
MethodRequest URIRoutes File To Be Loaded
GET//app/routes/index.js
GET/news/app/routes/news/archive.js
GET/news/:postid//app/routes/news/single
POST/news/:postid//app/routes/news/post.js
DELETE/news/:postid//app/routes/news/delete.js

Building Assets

Run grunt in your project's root directory to compile the assets folder into your public folder.

You should place all files into the assets directory when compiling your public folder.

TODOS

  • Add support for more views engine
  • Better documentation

FAQs

Package last updated on 19 Nov 2013

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc