Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A micro framework built on NodeJS to to help you prototype out your site ideas.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 changelog.txt
Octocat-spinner-32 package.json
Octocat-spinner-32 readme.rst
Octocat-spinner-32 start.js
readme.rst

Overview

** This is early and may be buggy. I haven't tested it completely so consider this very alpha! **

Martel is a micro framework built on NodeJS to help you prototype out your site ideas. Using Martel is as simple as creating a jade template file and then accessing it directly from the browser. Your template will be rendered and delivered back to the browser.

Creating a prototype in Martel means you don't think about URL routing, ORMs or frameworks. You only worry about creating a great frontend experience. The purpose is to hash out quick ideas and concepts before you even focus on the nitty details.

Install

npm install -g martel

Hello World Project

Run the following below commands:

  • martel create test_project
  • cd test_project
  • martel start

Open browser to http://localhost:3000/index.jade

If all goes well you should be welcomed by a "Hello World". Feel free to edit the templates and css/js files to your liking. Since Martel uses nodemon you can continue to edit your files and the server will auto reload on it's own!

Engines

Martel is built on the consolidate-build module and as a result supports a wide variety of template engines. For a complete list review the links below:

https://github.com/visionmedia/consolidate.js https://github.com/ForbesLindesay/consolidate-build

CLI

Martel comes with a command line tool to setup and start your project.

martel create <output directory>
Creates a template project directory
martel start
Starts the node server from your project directory
Something went wrong with that request. Please try again.