Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
TrinteJS - Javascrpt MVC Framework for Node.JS
JavaScript
tag: v.0.0.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
conf
controllers
lib
models
public
scripts
tests
utils
views
.gitignore
.npmignore
README.md
app-cluster.js
app.js
app.json
package.json
trinte

README.md

Trinte MVC Framework

A MVC boilerplate for Express.js

Description

I built this application to create a template MVC style app that I could then use as the start point for further development. I used the excellent examples in the main Express github repository, specifically the MVC example, as the starting point. I have however changed it quite substantially to make it clearer and remove some of the magic that confused me at first when learning. If you are familiar with other MVC frameworks hopefully my file structure makes some sense.

Requires

Installation

$ npm install -g trinte

Setup

  • In you project folder run
  // create app
  trinte create-app

  // running server
  trinte
  • Browse to http://localhost:3000

Commands:

  // Shows help
  trinte script

  // Wrapper for 3 commands below
  trinte script generate-all HelloWorld

  // Creates a model
  trinte script create-model HelloWorld

  // Creates a controller
  trinte script create-controller HelloWorld

  // Creates views
  trinte script create-view HelloWorld

  // Creates tests
  trinte script create-test HelloWorld

  // Runs server on different port
  trinte server server.port=3000

  // Creates a new app
  trinte create-app

License

(The MIT License)

Copyright (c) 2012 Aleksej Gordejev aleksej@gordejev.lv

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Resources

Something went wrong with that request. Please try again.