create-steedos-app 2.4.12 → 2.5.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,33 @@
1
- 华炎魔方模版项目
2
- ===
1
+ This is a [Steedos](https://www.steedos.com/) project bootstrapped with [`create-steedos-app`](https://github.com/steedos/steedos-platform/tree/master/packages/create-steedos-app).
3
2
 
4
- <p align="center">
5
- <a href="./README_en.md">English</a>
6
- <a href="https://www.steedos.cn/docs/"> · 文档</a>
7
- <a href="https://www.steedos.cn/videos/"> · 视频</a>
8
- <a href="https://demo.steedos.cn"> · 试用</a>
9
- </p>
3
+ ## Getting Started
10
4
 
11
-
12
- <p align="center" style="border-top: solid 1px #cccccc">
13
- 华炎魔方是 <a href="https://developer.salesforce.com/developer-centers/developer-experience" target="_blank">Salesforce Developer Experience (DX)</a> 的开源替代方案,将低代码技术与 <a href="https://www.steedos.cn/docs/deploy/devops"> DevOps 工具</a> 结合,实现敏捷开发的新高度。
14
- </p>
15
-
16
- <h3 align="center">
17
- 🤖 🎨 🚀
18
- </h3>
19
-
20
-
21
- # 快速向导
22
-
23
- ## 启动华炎魔方
24
-
25
- 开发软件包之前,先启动花华炎魔方服务。
26
-
27
- 1. 将 .env 复制为 .env.local,并修改相关配置参数。
28
- 2. 使用 docker 启动华炎魔方。
5
+ ### Start mongodb & redis service
29
6
 
30
7
  ```bash
31
8
  docker-compose up
32
9
  ```
33
10
 
34
- ## 访问华炎魔方
35
-
36
- 打开浏览器,访问 http://127.0.0.1:5000,进入华炎魔方。
37
-
38
- 进入设置应用,可以:
39
- - 创建自定义对象
40
- - 创建应用
41
- - 创建微页面
42
-
43
- ## 开发软件包
44
-
45
- 可以使用微服务的方式扩展华炎魔方。可以参考 services 文件夹下的例子。
11
+ ### Start steedos service
46
12
 
47
13
  ```bash
48
14
  yarn
49
15
  yarn start
50
16
  ```
51
17
 
52
- ## 使用 Node-RED
18
+ Open [http://localhost:5000](http://localhost:5000) with your browser to see the result.
53
19
 
54
- [Node-Red](https://nodered.org/) IBM 开源的服务端低代码开发工具,提供了可视化的开发环境,开发华炎魔方微服务。
20
+ ## Learn More
55
21
 
56
- - 创建定时任务
57
- - 自定义微服务
58
- - 自定义API
59
- - 自定义触发器
60
- - 接收和推送消息
22
+ To learn more about Steedos Platform, take a look at the following resources:
61
23
 
62
- ```bash
63
- yarn nodered
64
- ```
24
+ - [Steedos Documentation](https://www.steedos.com/docs) - learn about Steedos features and API.
25
+ - [Steedos Examples](https://github.com/steedos/steedos-examples) - Enjoy our selection of steedos examples to learn from or incorporate into your project.
26
+
27
+ You can check out [the Steedos GitHub repository](https://github.com/steedos/steedos-platform/) - your feedback and contributions are welcome!
28
+
29
+ ## Deploy your project
30
+
31
+ The easiest way to deploy your Steedos app is to use the [Docker Template](https://github.com/steedos/docker).
32
+
33
+ Check out our [Steedos deployment documentation](https://www.steedos.com/docs/deploy/getting-started) for more details.
@@ -2,56 +2,28 @@ version: "3.9"
2
2
 
3
3
  services:
4
4
 
5
- steedos:
6
- image: steedos/steedos-community:2.4
7
- ports:
8
- - "5000:5000"
9
- env_file:
10
- - .env.local
11
- environment:
12
- - PORT=5000
13
- - MONGO_URL=mongodb://mongodb:27017/steedos
14
- - MONGO_OPLOG_URL=mongodb://mongodb:27017/local
15
- - TRANSPORTER=nats://nats:4222
16
- - CACHER=redis://redis:6379
17
- depends_on:
18
- mongodb:
19
- condition: service_healthy
20
-
21
5
  redis:
22
6
  image: redis:6.2
7
+ command: "redis-server --save \"\" --appendonly no --loglevel warning"
23
8
  ports:
24
9
  - "6379:6379"
25
10
 
26
11
  mongodb:
27
- image: mongo:4.4
12
+ image: 'bitnami/mongodb:4.4'
13
+ restart: on-failure
28
14
  ports:
29
15
  - 27017:27017
30
- entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "steedos" ]
31
- healthcheck:
32
- test: echo 'db.runCommand("ping").ok' | mongo --quiet | grep 1
33
- interval: 10s
34
- timeout: 10s
35
- retries: 5
16
+ environment:
17
+ - MONGODB_REPLICA_SET_MODE=primary
18
+ - MONGODB_PORT_NUMBER=${MONGODB_PORT_NUMBER:-27017}
19
+ - MONGODB_INITIAL_PRIMARY_HOST=${MONGODB_INITIAL_PRIMARY_HOST:-mongodb}
20
+ - MONGODB_INITIAL_PRIMARY_PORT_NUMBER=${MONGODB_INITIAL_PRIMARY_PORT_NUMBER:-27017}
21
+ - MONGODB_REPLICA_SET_NAME=${MONGODB_REPLICA_SET_NAME:-steedos}
22
+ - MONGODB_ENABLE_JOURNAL=${MONGODB_ENABLE_JOURNAL:-true}
23
+ - MONGODB_ADVERTISED_HOSTNAME=${MONGODB_ADVERTISED_HOSTNAME:-mongodb}
24
+ - ALLOW_EMPTY_PASSWORD=${ALLOW_EMPTY_PASSWORD:-yes}
36
25
  volumes:
37
- - 'steedos-mongo-data:/data/db'
38
-
39
- mongodb-init:
40
- image: mongo:4.4
41
- restart: "no"
42
- depends_on:
43
- mongodb:
44
- condition: service_healthy
45
- command: >
46
- mongo --host mongodb:27017 --eval "rs.initiate({ _id: 'steedos', members: [{_id: 0, host: 'mongodb:27017'}]})"
47
-
48
- # Micro Service Transporter
49
- nats:
50
- image: bitnami/nats
51
- ports:
52
- - "4222:4222"
53
- - "8222:8222" # monitor port
26
+ - 'steedos-mongo-data:/bitnami'
54
27
 
55
28
  volumes:
56
- steedos-mongo-data:
57
- driver: local
29
+ steedos-mongo-data:
package/dist/default/env CHANGED
@@ -1,44 +1,23 @@
1
- # 参考 https://www.steedos.cn/docs/deploy/steedos-config
2
-
3
1
  PORT=5000
4
2
  ROOT_URL=http://127.0.0.1:5000
5
- TRANSPORTER=nats://127.0.0.1:4222
6
- CACHER=redis://127.0.0.1:6379
3
+ TRANSPORTER=redis://127.0.0.1:6379
4
+ CACHER=redis://127.0.0.1:6379/1
7
5
  MONGO_URL=mongodb://127.0.0.1:27017/steedos
8
6
  MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local
9
- # NODE_ENV=development
10
7
 
11
- # STEEDOS_CFS_STORE=local
12
- # STEEDOS_STORAGE_DIR=./storage
8
+ STEEDOS_NODEID=steedos-primary
13
9
 
14
- # 初始安装的软件包
15
- # STEEDOS_INITIAL_PACKAGES=@steedos-labs/project-ee,@steedos-labs/demo-ee,@steedos-labs/flows
10
+ STEEDOS_CFS_STORE=local
11
+ STEEDOS_STORAGE_DIR=./storage
16
12
 
17
13
  # 身份验证
18
- # STEEDOS_TENANT_ENABLE_PASSWORD_LOGIN=true
19
- # STEEDOS_TENANT_TOKEN_SECRET=
20
- # STEEDOS_TENANT_ENABLE_REGISTER=true
21
-
22
- # VSCode 代码同步
23
- # METADATA_SERVER=
24
- # METADATA_APIKEY=
25
-
26
- # 启用 Steedos ID 统一身份认证。
27
- # STEEDOS_IDENTITY_OIDC_ENABLED=true
28
- # STEEDOS_IDENTITY_OIDC_ISSUER=https://id.steedos.cn/realms/master
29
- # STEEDOS_IDENTITY_OIDC_CONFIG_URL=https://id.steedos.cn/realms/master/.well-known/openid-configuration
30
- # STEEDOS_IDENTITY_OIDC_CLIENT_ID=steedos-oidc-public
31
- # STEEDOS_IDENTITY_OIDC_CLIENT_SECRET=none
32
- # STEEDOS_IDENTITY_OIDC_NAME=Steedos ID
33
-
34
- # Node-RED 配置
35
- # NODERED_CREDENTIAL_SECRET=steedos
36
-
37
- # 配置资产包 CDN 服务的网址
38
- # STEEDOS_UNPKG_URL=https://unpkg.steedos.cn
14
+ STEEDOS_TENANT_ENABLE_PASSWORD_LOGIN=true
15
+ STEEDOS_TENANT_TOKEN_SECRET=change-me
39
16
 
40
- # 配置 Amis 当前引用的版本号
41
- # STEEDOS_AMIS_VERSION=2.7.2
17
+ # 绑定华炎云账户
18
+ STEEDOS_CLOUD_API_KEY=
19
+ STEEDOS_CLOUD_SPACE_ID=
42
20
 
43
- # 配置资产包的地址,多个资产包用,隔开
44
- # STEEDOS_PUBLIC_PAGE_ASSETURLS=https://unpkg.steedos.cn/@steedos-widgets/amis-object@1.1/dist/assets.json
21
+ # vscode 代码同步
22
+ METADATA_SERVER=
23
+ METADATA_APIKEY=
@@ -4,6 +4,8 @@
4
4
 
5
5
  **/node_modules
6
6
 
7
+ .npmrc
8
+ .yarnrc
7
9
  **/npm-error.log
8
10
  **/yarn-error.log
9
11
  **/lerna-debug.log
@@ -14,6 +16,5 @@ logs
14
16
 
15
17
  .env.local
16
18
  .steedos
17
- .node-red
18
19
 
19
20
  yarn.lock
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "my-steedos-package",
3
+ "version": "0.1.0",
4
+ "main": "package.service.js",
5
+ "private": true
6
+ }
@@ -66,4 +66,4 @@ module.exports = {
66
66
  async stopped() {
67
67
 
68
68
  }
69
- };
69
+ };
@@ -1,5 +1,3 @@
1
- require('dotenv-flow').config();
2
-
3
1
  module.exports = {
4
2
  // Namespace of nodes to segment your nodes on the same network.
5
3
  namespace: "steedos",
package/dist/gitignore CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  **/node_modules
6
6
 
7
+ .npmrc
8
+ .yarnrc
7
9
  **/npm-error.log
8
10
  **/yarn-error.log
9
11
  **/lerna-debug.log
@@ -14,6 +16,5 @@ logs
14
16
 
15
17
  .env.local
16
18
  .steedos
17
- .node-red
18
19
 
19
20
  yarn.lock