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

rabbitjs

v0.0.20

Published

本框架是一个simple mvc的库,使用它可以快速构建你的nodejs应用,即使你对nodejs了解并不深入也不会影响你的开发之路。一晚上上线一个网站不是梦。

Downloads

192

Readme

##Rabbit.js is a fast and light mvc framework for Nodejs

PS:自从用了Rabbit.js,感觉自己萌萌哒~~~

###关于Rabbit.js

Rabbit.js 的定位是一个超轻量的快速开发框架。Light and Fast。你甚至很快就可以理解它的底层实现(也许只需要5分钟)。Rabbit.js本身的代码量并不大,这得益于很多NodeJS开源库的支持,通过一些有效的组合,成为这样一个简单而清晰的开发框架。

Rabbit.js 能够提供一个清晰的开发思路,让你的应用逻辑清晰并且足够结构化,但是同时又不会增加你的开发复杂度,相反,复杂度被降低,因为在逻辑分层的过程中对很多操作做了封装,你要做的就是关注自己需要关注的逻辑代码,而不用关心框架本身。

Rabbit.js 是一个依靠约定和封装进行工作的框架,秉承约定大于配置的快速开发理念,高度自动化,提高开发效率。不过可能因此降低了一些灵活性,但是本框架的定位决定其使用场景,Rabbit.js比较适合于中小型项目或者个人项目,得益于其快速开发的特点,可以快速搭建restfull的网络服务。

###特色

  • 清晰的应用分层,可以帮助您构建大型的应用,具体见章节“分层”
  • 约定大于配置,基本无需配置,即可开始开发之旅。
  • 约定大于配置,团队合作写出来的应用代码基本一致,方便统一代码风格。
  • 应用的restful的route完全根据目录结构自动生成,无需自己声明和指定。
  • controller和view之间拥有自动映射,你在controller里无需指定渲染的view路径。
  • 分层之间不采用跳路径方式应用,而是根据名字寻找,无需关心自己和别的分层中得js得目录结构关系。
  • 将controller层,service层,model层做了抽象封装,大部分通用逻辑都已经默认添加,极大的减少代码量。
  • 对model层做了特别封装,同时支持sql和mongodb,写法完全一样。
  • model层封装成了promise的写法,让你的数据操作更清晰简介。
  • 功能插件系统,开发中,常用的服务器功能一句话引入,例如用户系统,无需开发。
  • 默认为您配置了一个可用的express服务器。
  • clone下来,查看文档,立马开始您的开发之旅。

###安装和创建项目 安装和创建项目

###分层 分层约定

###Controller的定义和介绍 Controller的定义和介绍

###Model层的定义和封装 Model层的定义和封装

###所有命令

###scaffold脚手架

###插件系统

###定时任务 定时任务

###基础依赖库 基础依赖库文档