npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

expressjsmvc

v3.5.1

Published

An Express.js application organized in an MVC way with extra helpers and utilities

Downloads

12

Readme

Express MVC is an Express.js framework organized in an MVC way with extra helpers and utilities.

The goal of ExpressMVC is to simplify common tasks and make your application more modular, but at the same time, not creating another framework or a different community.

Install

npm install -g expressjsmvc

Create your application

expressjsmvc create application-name

Install required packages

cd application-name && npm install

Download the components defined in expressjsmvc.json and install dependencies

expressjsmvc install

Start your application

node start.js

Features

ExpressMVC offers some features out of the box that you might find interesting:

Modular structure

ExpressMVC lets you organize your application in components that you can reuse. This components are organized in controllers, models and views and file to define your routes.

Structure of a component

/components/blog
	/controllers
		index.js <- This file contains your controller
	/models
		index.js <- This file contains the models for your component
	/views
		blogPage.jade <- This file is a blog page
	index.js <- Define your routes here

Views separation

With ExpressMVC you can separate your views and package them into your components. You can access your /views directory without having to use relative paths, example:

include /layout

Easy require for both components, libraries and

You can require any component from other components as long as you organize your components in the propossed structure. See an example in the frontpage component.

Event driven

ExpressMVC lets you bind events to the application and trigger them from anywhere really easy.

Example

var include = require("includemvc");
var app = include.app();

app.on("myevent", function(data) {
	console.log(data);
})

app.emit("myevent", {title: "Hello World"});

Bower ready

The framework comes out of the box with a bower file so you can run bower install and automatically include jQuery, Bootstrap, Backbone.js and Underscore.js

Module package manager

ExpressMVC provides you with an easy way to define the needed components by your application. Define the components you need to download in expressjsmvc.json. We use git to download the components so you need to have it installed first. All defined components will be downloaded into the components directory.

Enable or disable components easily

Forget about requiring your components in your application, all you need to do is add them to the config.components array and they will be enabled.

ToDo

  • download components dependencies

License

The MIT License (MIT)

Copyright (c) [2014] [Luis Elizondo]

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.