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

easy-server-cli

v1.0.23

Published

快速创建后端服务

Downloads

25

Readme

  1. 全局安装
npm i -g easy-server-cli
  1. 创建项目
esc init <name>
  1. 运行项目
cd <name> && npm start
  1. 通过postman、postwoman、vscode中的postcode进行简单测试,确保项目运行正常 可以通过POST请求:http://localhost:5888/login 接口,输出code为0则一切正常。

二. 说明

  1. 该脚手架产生的目的:练手,方便自己平时使用。
  2. 该脚手架目前支持koa2版本的服务开发,已经集成了一些较为常用的中间件,提供commonjs、es、ts三种,各位根据自己的喜好可以选择。
  3. 该脚手架目前适合做一些小的后端api服务
  4. 目前各中间件的配置都为大众化配置,如果有特殊需求,可以自行修改项目中的配置。

三. 开发注意事项

  1. 目前项目使用了es进行module的导出和引入,在引入时,一定要使用全路径(详细到文件后缀名),例如:
import { fileSuffix } from '../config/index.js';
  1. 提交规范

    提交遵循angular提交规范。

示例:

[TYPE](SCOPE):DESCRIPTION#[ISSUE]
# example feat(question.index.js): 新增express的支持 #5888

四. 声明:

新手练手脚手架,如果要用于生产,请保重。 :smile::smile::smile:

油腻胖子为了深入学习,粗手粗脚的写了这么一个脚手架。第一次出手,在这里接收各位同学的批评,也欢迎各位初学者加入,也欢迎大神加入,让其变的更加强壮。

五. TodoList

革命尚未成功,胖子仍需努力

  • [x] 1. 模板 - 增加eslint
  • [ ] 2. 模版 - 远程模版
  • [x] 3. cli - 增加单元测试
  • [x] 4. cli - 增加eslint
  • [ ] 5. cli - 增加express的支持
  • [ ] 6. cli - 逻辑优化
  • [x] 7. cli - 提交规范
  • [ ] 8. 模版 - 增加压力测试(autocannon)
  • [ ] 9. 模版 - 增加接口性能测试(benchmark)
  • [ ] 10. 模版 - 增加单元测试(mocha + chai)

六. Licence

easy-server-cli is open source software licensed as MIT.

Copyright (c) 2021 book12085