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

scalable-form-platform-cli

v1.0.8

Published

standalone scalable-form server

Downloads

26

Readme

scalable-form-platform-cli

A Standalone Scalable Form Server

GitHub npm GitHub last commit GitHub issues

实际业务使用中,Scalable Form整体上由三个主要部分组成,一个表单渲染端,一个表单配置端,一个表单存储的服务端。

  • Scalable Form渲染端由协议解释器和表单UI组件组成。因为解释器和UI组件的解耦,Scalable Form的sdk可以提供基于多种UI组件的表单渲染能力,包括antd和移动端antd-mobile。
  • Scalable Form表单配置端可以通过可视化的方式来编排产出渲染端可用的表单配置。
  • Scalable Form表单配置端产出的协议配置,渲染端可以直接使用。不过在实际使用中,还需要服务端来存储表单配置。不仅如此,服务端还可以串联起整个Scalable Form的使用场景,提供配置站点(权限控制,场景配置,自定义组件配置),表单填写页面,表单数据存储展示与简单的数据分析能力。

Scalable Form整体模块划分如下: Scalable Form整体模块图

快速使用

通过scalable-form-platform-cli,您可以快速部署一个Scalable Form服务器,全局安装scalable-form-platform-cli包,然后执行scalable-form -d既可

npm install scalable-form-platform-cli -g // 全局安装scalable-form-platform-cli包
scalable-form -d // 开启一个xform服务

-d表示Scalable Form以demo的方式开启了一个Scalable Form服务端。 image.png

请注意,demo模式仅用于快速演示,服务器以内存数据库的方式存储数据,重启后数据会清空,不要在生产环境下使用。生产环境使用方法请查看文档

按照终端提示,访问http://localhost:3000/xform/admin即可使用Scalable Form独立站点 image.png 执行scalable-form -k可关闭当前XForm服务器

scalable-form -k // 关闭当前XForm服务器

更多文档配置说明,请查看文档

Scalable Form站点功能介绍

目前的Scalable Form独立部署站点已经实现了哪些能力呢?

数据库初始化

初始连接数据库时,如果数据库的表table不存在,Scalable Form会开启初始化向导,引导用户初始化数据库。Scalable Form提供一键执行初始化能力,但对于某些场景,需要用户手动查看SQL,并自行初始化数据库

表单创建和可视化编排

通过站点,你可以方便创建和可视化编排Scalable Form表单。

表单填写与提交

配置好的表单,Scalable Form会提供相应的PC和移动端表单页面,业务和运营可以直接投放对应的表单链接和二维码 image.png

表单提交与数据

默认数据会提交到Scalable Form独立站点,当然你可利用Scalable Form渲染sdk,自定义数据提交方式,Scalable Form站点提供数据展示,导出导入和数据分析能力 image.png