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 🙏

© 2026 – Pkg Stats / Ryan Hefner

generator-jake-admin

v0.1.6

Published

基于express的后台管理脚手架

Downloads

24

Readme

express-admin

基于express+mongodb+ejs+sass后台管理模版

使用yoeman创建模板

安装 yo

[sudo] npm install -g yo

安装模板生成器

[sudo] npm install -g generator-jake-admin

新建一个项目目录并进入

mkdir dir && cd $_

使用模板,这个命令会自动安装依赖(npm install),建议终止掉,然后使用 cnpmyarn 来安装,因为速度飞快。

yo jake-admin

使用

npm install
node app.js  /  gulp dev

管理入口

http://localhost:3000/manage

config.js配置

  • mongodbName 为数据库名称

修改访问IP限制次数或者提示

app.js 文件修改 limiter

gulp

使用gulp-nodemongulp-livereload配置刷新 如果使用gulp dev执行,会自动监听js改变,并重启服务。 监听public文件夹内'scss'文件改动,刷新浏览器

route

  • page
    • /manage 管理入口
    • /manage/show/login 登录、注册
  • api
    • /manage/signin 登录
    • /manage/signup 注册
    • /manage/logout 退出    - /manage/import 上传文件 (使用方法请查看表单文件上传

文件

  • /controllers 控制器
    • admin 管理用户(登录、注册、退出)
    • page 页面入口
    • upload 基于milter组件的上传配置
  • /models mongodb模型
    • admin 管理员模型
  • /public 静态文件
    • template/ 后台模版静态文件地址,需要使用的页面copy到views文件夹中使用
    • files/ 上传文件存储位置,在/controllers/upload.js中配置
    • images/ 图片
    • js/ JavaScript存放地址
    • style/ 样式文件。可以使用css或者less,less使用less-middleware编译,在app.js中配置
  • /route 路由
  • /views ejs模版
  • app.js 入口文件
  • config.js 配置文件
    • mongodbName 在mongodb中数据库名

License

MIT © JakeLaoyu