Questions tagged [locomotivejs]

Locomotive is a web framework for Node.js. Instilled with familiar MVC patterns and a conventional file layout.

Locomotive is a web framework for Node.js. Instilled with familiar MVC patterns and a conventional file layout.

See http://locomotivejs.org/

Features

  • MVC architecture
  • Convention over configuration
  • Expressive routing
  • Routing helpers
  • Connects to any database
  • Renders with any template engine
  • Adheres to REST principles
  • Built on Express

Community

65 questions
0
votes
2 answers

Using connect-session middleware with Redis in Locomotive framework

I am using Locomotive framework for creating a nodejs web-application. In config/environments/all.js I have: var express = require('express') , poweredBy = require('connect-powered-by') , util = require('util') , connectAssets =…
lorefnon
  • 12,875
  • 6
  • 61
  • 93
0
votes
2 answers

Implementing / forcing SSL for LocomotiveJS apps (NodeJS / Express)

With MVC frameworks like LocomotiveJS now available for NodeJS / Express, I'm just wondering how it would be possible to implement SSL on part of an app? For example, an ecommerce app. I'd need all /checkout controllers to force SSL. I've read…
Alex
  • 37,502
  • 51
  • 204
  • 332
-1
votes
2 answers

Undefined method flash in the view of node.js

Problem in accessing flash messages on view in node.js In my Controller this.req.flash('info','successfully submited'); this.redirect("/home"); In my home view I am not able to get flash messages as req.flash('info'); EDIT In controller…
user3680001
  • 91
  • 1
  • 7
-1
votes
1 answer

MVC Unit Testing LocomotiveJS

I am using LocomotiveJS to build an MVC application. I have been thinking about the type of tests I should write and am confused. Here are the different components in the application - Models, Views, Controllers, Router and the ORM. If I had to unit…
Aishwar
  • 9,284
  • 10
  • 59
  • 80
-2
votes
1 answer

how do i use coffescript with locomotive JS

Hi i'm trying to use the newest locomotiveJS version but want to use coffescripts for my controllers etc. - Old posts on google (like How do I set coffescript in Locomotivejs?) shows that this is possible, but the examples given doesn't fit anymore…
1 2 3 4
5