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

noomi-cli

v1.0.9

Published

Noomi-cli is a client tool for noomi to generate project files

Downloads

20

Readme

noomi-cli

noomi 客户端命令工具,可一键生成项目结构。

前置安装

  1. 安装node并设置好node和npm环境变量,否则可能会报找不到npm的异常;
  2. 安装typescript,npm install typescript -g;
  3. 安装noomi-cli,输入 npm install noomi-cli -g。

用法

  1. 新建一个目录,如 myfirstapp;
  2. 命令行模式到该目录下;
  3. 输入 noomi-cli -n,进行noomi环境安装和项目新建,某些系统可能需要管理员权限执行(sudo)。
  4. 输入 noomi-cli -c,通过淘宝源安装noomi并新建项目,noomi-cli -h 可以看如何安装淘宝源。

运行

方法一:

  1. 打开vscode开发工具;
  2. 添加目录到workspace;
  3. 找到该目录下的app.ts文件并运行,控制台输出启动信息;

方法二:

  1. 在目录下输入命令 npm run build ,编译ts文件;
  2. 输入命令 ts-node app.ts ,启动应用,输出启动信息。

切换到浏览器,输入localhost:3000/hello,输出{"result":"Hello World!"}

项目目录说明

  • .vscode: vscode配置
    • launch文件: vscode启动文件
  • config: noomi 配置文件
    • noomi.json: noomi 主配置文件
    • aop.json: aop 配置文件
    • database: 数据源配置文件目录
      • mssql.json: mssql配置文件
      • mysql.json: mysql配置文件
      • oracle.json: oracle配置文件
      • sequelize.json: sequelize配置文件
    • filter.json: 过滤器配置文件
    • instance.json: 实例配置文件
    • redis.json: redis配置文件
    • route.json: 路由配置文件
    • security.json: 安全框架配置文件
    • web.json: web配置文件
  • module: 核心模块
    • dao dao层相关模块
    • router 路由相关模块
      • hello.ts: hello 路由文件
    • service 业务层相关模块
      • hello.ts: hello 业务文件
  • app.ts:项目启动文件
  • tsconfig.json: typescript配置文件

版本说明

1.0.7

  1. 根据noomi升级更改config文件;
  2. 取消内置sudo,安装时,由用户手动添加sudo。