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

@steedos-labs/demo-ee

v2.6.4

Published

业务示例数据

Downloads

205

Readme

saas-demo

  • 提供演示数据
  • 安装软件包后自动写入演示数据、支持更新演示数据
  • 演示数据存放目录main\default\data
  • 数据后缀名
    • xx.data.json
    • xx.data.csv
    • xx.flow.data.json

使用mongodb cli 导出演示数据

  • json: 使用命令导出。例如: mongoexport --uri="mongodb://192.168.3.31:27017/steedos-apps" --jsonArray --collection=contract_types --out=contract_types.data.json
  • csv: 使用命令导出。例如: mongoexport --uri="mongodb://192.168.3.31:27017/steedos-apps" --collection=contract_types --type=csv --fields=name,code --out=contract_types.data.csv

编码要求

json、csv中文件请使用utf-8编码

导入数据方式

  • 自动导入:软件包启动后,会自动导入main\default\data下所有xx.data.json、xx.data.csv、xx.flow.json数据
  • 手动导入:调用actions导入,新开命令窗口,并进入项目根路径,执行以下2条命令
yarn console
call "@steedos-labs/demo-project.importData"
  • action: importData
    • 参数:onlyInsert,默认值true。如果为true,仅导入,在导入数据之前先检查,如果存在任意一条记录,则不执行导入。如果是false, 则如果存在则执行update操作。

示例,导出合同模块数据, 进入main\default\data文件夹后执行以下命令

mongoexport --uri="mongodb://192.168.3.31:27017/steedos-apps"  --collection=contract_types --type=csv --fields=name,code --out=contract_types.data.csv

mongoexport --uri="mongodb://192.168.3.31:27017/steedos-apps" --jsonArray --collection=contracts  --out=contracts.data.json

mongoexport --uri="mongodb://192.168.3.31:27017/steedos-apps" --jsonArray --collection=accounts  --out=accounts.data.json

mongoexport --uri="mongodb://192.168.3.31:27017/steedos-apps" --jsonArray --collection=currency  --out=currency.data.json