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

@sevenryze/deploy

v1.0.4

Published

后端使用的部署工具

Downloads

16

Readme

目录

The Deep Digest App Backend Controller

This is project App of DeepDigest Inc. for simplifying the backend server development.

Our server group guys have made lots of discussions about which tools we should adopt, and we choose node.js, the baby but powerful platform. Then we talked about pure js, traceur, babel and so on. Finally, we made a united decision on that it must be typescript - microsoft's typed javascript.

This server framework is aimed at the goal - "simple, fast, debug-faced and stable". It's used for holding the big application logic level layer of our backend system. For now we have done many awesome features like tasks switch, debug information info and request-response object initialize. In the future, we will try our best to get continual improvements. Good luck for this team!

Build

Use the typescript compiler to compile the code set. For more information, you should check the tsconfig.ts file.

测试

We use a well-known combination set - jest and superagent. You are to use npm test script to test all the code, like:

npm test

部署

安装nodejs

  1. 安装nvm: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
  2. 重新进入shell.
  3. 使用command -v nvm确认nvm安装成功.
  4. 使用nvm install node或者nvm install node --lts安装node.
  5. 使用npm install -g npm升级npm.

安装pm2

  1. 使用npm install -g pm2安装pm2.
  2. 使用pm2 install pm2-logrotate安装log rotate工具.

上传代码至服务器

  1. 将需要上传的服务器文件打包.
  2. 上传之后解压缩.

运行

  1. 分别进入不同的工程目录, 使用pm2 start app或者pm2 start admin启动应用.

注意:

为了保持API兼容性,我们采取以下策略:

  1. 借用SemVer的概念,对API版本,我们使用major.minor.patch这种方式标识API版本。
  2. 从REST URI上我们只能看到公开的major版本,例如:/api/1/user/gogo。内部完整版本请参考package.json。
  3. 一个REST API的URI和返回值组成一个最小二元组,任何一个元素发生变化都表示版本发生变化。例如:URI不变而返回值发生变化,我们也认为其API版本发生变化。
  4. major版本代表API发生了重大变化以至于必须打破向后兼容性。此时我们将会改变URI中的API版本字符串,而REST返回值等也将发生相应变化。
  5. minor版本代表API发生了扩增,以前的API保持兼容。此时我们采用增加API URI或扩增返回值的方式来扩增功能,这样,新的功能可以使用新的URI、新的返回值字段,而旧的功能继续使用旧的API。
  6. patch版本代表API没有发生变化,全部保持兼容性。此时我们只是对功能做了一定的修补,但保持所有的URI和返回值均不发生变化。

TODO

  1. 模拟明星或组织, 与用户进行交流.

Code of Conduct

  1. You are not rambo. Remember that we are a team.
  2. Please invite someone to review your code, again, you are not immortal.
  3. Never blame any workmate for the quality of code set, you should know that boss already fined the poor guy.

Contributor

  • Jason - XmT Inc.
  • Cris - XmT Inc.
  • Becky - XmT Inc.
  • ~~Rangeragent - XmT Inc.~~