create-steedos-app 3.0.0 → 3.0.2-beta.10
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.
- package/package.json +5 -5
- package/templates/default/.env +1 -6
- package/templates/default/README.md +12 -68
- package/templates/default/package.json +8 -19
- package/templates/default/steedos.config.js +1 -15
- package/templates/default/.vscode/tasks.json +0 -20
- package/templates/default/steedos-platform/.env +0 -10
- package/templates/default/steedos-platform/README.md +0 -32
- package/templates/default/steedos-platform/docker-compose.yml +0 -25
- package/templates/default/steedos-platform/package.json +0 -13
- package/templates/default/steedos-platform/steedos.config.js +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-steedos-app",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-beta.10",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react",
|
|
6
6
|
"steedos"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"chalk": "2.4.2",
|
|
30
30
|
"commander": "2.20.0",
|
|
31
31
|
"cpy": "7.3.0",
|
|
32
|
-
"cross-spawn": "6.0.
|
|
33
|
-
"got": "
|
|
32
|
+
"cross-spawn": "6.0.6",
|
|
33
|
+
"got": "11.8.5",
|
|
34
34
|
"prompts": "2.1.0",
|
|
35
35
|
"rimraf": "3.0.2",
|
|
36
|
-
"tar": "
|
|
36
|
+
"tar": "7.5.2",
|
|
37
37
|
"update-check": "1.5.4",
|
|
38
38
|
"validate-npm-package-name": "3.0.0"
|
|
39
39
|
},
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=14"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "35caa60431c6d4931e0d098b36af37945a3c0c6e"
|
|
53
53
|
}
|
package/templates/default/.env
CHANGED
|
@@ -1,87 +1,31 @@
|
|
|
1
|
+
# Steedos 项目模板
|
|
1
2
|
|
|
2
|
-
|
|
3
|
+
华炎魔方提供了超越传统无代码平台的深度定制和开发能力,不仅允许没有编程背景的用户快速创建应用,还为有经验的开发人员提供了强大的工具和框架,使他们能够进行更复杂的自定义和集成。
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
- [文档](https://docs.steedos.com)
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
- [What is Steedos Package](https://docs.steedos.com/developer/package/overview)
|
|
7
|
+
# 快速向导
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 运行数据库
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
First, you must run Steedos Platform. You can follow the [Self Hosting Tutorial](/deploy/deploy-docker) to deploy Steedos on a server, or launch a local Steedos Platform.
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
cd steedos-platform
|
|
17
|
-
docker-compose up
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
You can also refer to the instructions in the `./steedos-platform` dir to run Steedos Platform with Node.js.
|
|
21
|
-
|
|
22
|
-
### Register Admin Account
|
|
23
|
-
|
|
24
|
-
Upon its first launch, the system will prompt you to register an account and create an organization. This account will also become the administrator account for the organization.
|
|
25
|
-
|
|
26
|
-
### Create an API Key
|
|
27
|
-
|
|
28
|
-
You can log in to the Steedos server with administrator credentials, go to the settings app, select the API Key menu, and create a new API Key.
|
|
29
|
-
|
|
30
|
-
## Setup Environment Variable
|
|
31
|
-
|
|
32
|
-
### Setup TRANSPORTER
|
|
33
|
-
|
|
34
|
-
The Steedos package operates using the [Moleculer](https://moleculer.services/docs) microservices framework, connecting microservices through the configuration of a unified Transporter.
|
|
35
|
-
|
|
36
|
-
[Moleculer Transporter](https://moleculer.services/docs/0.14/networking) is an important module if you are running services on multiple nodes. Transporter communicates with other nodes. It transfers events, calls requests and processes responses …etc. If multiple instances of a service are running on different nodes then the requests will be load-balanced among them.
|
|
11
|
+
您可以在本地安装 mongodb 和 redis,或者使用 docker 快速启动。
|
|
37
12
|
|
|
38
13
|
```bash
|
|
39
|
-
|
|
14
|
+
docker-compose up mongodb redis
|
|
40
15
|
```
|
|
41
|
-
:::tip
|
|
42
|
-
Please make sure the TRANSPORTER you configured matches the Steedos server you wish to connect to and that the network is interconnected.
|
|
43
|
-
:::
|
|
44
16
|
|
|
45
|
-
:::danger
|
|
46
|
-
For running in a production environment, be sure to configure the Redis password.
|
|
47
|
-
:::
|
|
48
17
|
|
|
49
|
-
|
|
18
|
+
## 运行 Steedos
|
|
50
19
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
steedos source:config
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
- Metadata Server: METADATA_SERVER is the ROOT_URL of the Steedos server you wish to connect to.
|
|
58
|
-
- Metadata API Key: METADATA_APIKEY is used to authenticate your identity.
|
|
59
|
-
|
|
60
|
-
This command writes environment variables into the .env.local file,
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
METADATA_SERVER=
|
|
64
|
-
METADATA_APIKEY=
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
You can also set the above environment variables directly without running the command.
|
|
68
|
-
|
|
69
|
-
## Run Steedos Packages
|
|
70
|
-
|
|
71
|
-
### Install Dependences
|
|
20
|
+
### 安装依赖
|
|
72
21
|
|
|
73
22
|
```bash
|
|
74
23
|
yarn
|
|
24
|
+
yarn build
|
|
75
25
|
```
|
|
76
26
|
|
|
77
|
-
###
|
|
78
|
-
|
|
79
|
-
You can use the [moleculer-runner](https://moleculer.services/docs/0.14/runner) command to launch the steedos packages.
|
|
27
|
+
### 运行 Steedos
|
|
80
28
|
|
|
81
29
|
```bash
|
|
82
|
-
yarn
|
|
30
|
+
yarn start
|
|
83
31
|
```
|
|
84
|
-
|
|
85
|
-
:::tip
|
|
86
|
-
Please note that the Steedos DX project supports multi-package development, and the above command simultaneously launches all packages under the steedos-packages folder.
|
|
87
|
-
:::
|
|
@@ -1,32 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "steedos-project-templates",
|
|
2
3
|
"version": "0.0.1",
|
|
3
4
|
"private": true,
|
|
4
5
|
"workspaces": [
|
|
5
6
|
"steedos-packages/*"
|
|
6
7
|
],
|
|
7
8
|
"scripts": {
|
|
8
|
-
"start": "
|
|
9
|
-
"start
|
|
9
|
+
"start:db": "docker-compose up mongodb redis",
|
|
10
|
+
"start": "steedos start"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
|
-
"@steedos/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"moleculer": "^0.
|
|
13
|
+
"@steedos/server": "^3.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"moleculer-repl": "^0.7.4",
|
|
17
|
+
"ts-jest": "^29.0.3",
|
|
16
18
|
"ts-node": "^10.9.1",
|
|
17
19
|
"typescript": "^4.9.3"
|
|
18
|
-
},
|
|
19
|
-
"resolutions": {
|
|
20
|
-
"@azure/core-auth": "1.5.0",
|
|
21
|
-
"@azure/core-client": "1.7.3",
|
|
22
|
-
"@azure/core-lro": "2.5.4",
|
|
23
|
-
"@azure/core-rest-pipeline": "1.12.1",
|
|
24
|
-
"@azure/core-util": "1.5.0",
|
|
25
|
-
"@azure/keyvault-keys": "4.7.2",
|
|
26
|
-
"@azure/logger": "1.0.4",
|
|
27
|
-
"@azure/core-tracing": "1.0.1",
|
|
28
|
-
"@azure/core-paging": "1.5.0",
|
|
29
|
-
"@types/mime": "3.0.0",
|
|
30
|
-
"undici": "5.16.0"
|
|
31
20
|
}
|
|
32
21
|
}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
require('dotenv-flow').config({});
|
|
2
|
-
// Moleculer Configuration
|
|
3
|
-
// https://moleculer.services/docs/0.14/configuration.html
|
|
4
|
-
module.exports = {
|
|
5
|
-
// Namespace of nodes to segment your nodes on the same network.
|
|
6
|
-
namespace: "steedos",
|
|
7
|
-
// Default log level for built-in console logger. It can be overwritten in logger options above.
|
|
8
|
-
// Available values: trace, debug, info, warn, error, fatal
|
|
9
|
-
logLevel: "info",
|
|
10
|
-
|
|
11
|
-
transporter: process.env.TRANSPORTER,
|
|
12
1
|
|
|
13
|
-
|
|
14
|
-
started(broker) {
|
|
15
|
-
}
|
|
16
|
-
|
|
2
|
+
module.exports = {
|
|
17
3
|
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.0.0",
|
|
3
|
-
"tasks": [
|
|
4
|
-
{
|
|
5
|
-
"label": "Install Steedos DX",
|
|
6
|
-
"type": "shell",
|
|
7
|
-
"command": "echo Please Install Steedos DX Extensions",
|
|
8
|
-
"linux": {
|
|
9
|
-
"command": "npx json5 .vscode/extensions.json | npx json-cli-tool --path=recommendations --output=newline | xargs -L 1 code --install-extension",
|
|
10
|
-
},
|
|
11
|
-
"presentation": {
|
|
12
|
-
"reveal": "always",
|
|
13
|
-
"panel": "new"
|
|
14
|
-
},
|
|
15
|
-
"runOptions": {
|
|
16
|
-
"runOn": "folderOpen"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# https://docs.steedos.com/deploy/steedos-config
|
|
2
|
-
|
|
3
|
-
PORT=5100
|
|
4
|
-
ROOT_URL=http://127.0.0.1:5100
|
|
5
|
-
TRANSPORTER=redis://127.0.0.1:6379
|
|
6
|
-
CACHER=redis://127.0.0.1:6379/1
|
|
7
|
-
MONGO_URL=mongodb://127.0.0.1:27017/steedos
|
|
8
|
-
MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local
|
|
9
|
-
|
|
10
|
-
STEEDOS_STORAGE_DIR=./steedos-storage
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Steedos Platform
|
|
2
|
-
|
|
3
|
-
Steedos Low-code PaaS platform is an open-source alternative to Salesforce Platform. It provides a powerful and flexible platform for building enterprise applications quickly and easily. With Steedos, you can create custom applications without writing a single line of code.
|
|
4
|
-
|
|
5
|
-
## Starting Steedos
|
|
6
|
-
|
|
7
|
-
Instructions for initializing the Steedos Platform, a powerful low-code solution, using different methods.
|
|
8
|
-
|
|
9
|
-
### 1. Launching Steedos with Docker
|
|
10
|
-
|
|
11
|
-
It is recommended to use Docker for launching the Steedos platform as it automatically initializes all dependent services.
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
docker-compose up
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
### 2. Launching Steedos with Node.js
|
|
18
|
-
|
|
19
|
-
Alternatively, the Steedos platform can be started using Node.js. This method requires you to first install MongoDB, Redis, and NATS locally, or initiate these dependent services with Docker.
|
|
20
|
-
|
|
21
|
-
1. Start Mongodb & Redis
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
docker-compose up redis mongodb mongodb-init
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
2. Start Steedos
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
yarn
|
|
31
|
-
yarn start
|
|
32
|
-
```
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
version: "3.9"
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
|
|
5
|
-
steedos:
|
|
6
|
-
image: steedos/steedos-enterprise:3.0.0-beta.63
|
|
7
|
-
ports:
|
|
8
|
-
- "5100:80" # Steedos
|
|
9
|
-
- "27017:27017" # MongoDB
|
|
10
|
-
- "9001:9001" # Supervisor
|
|
11
|
-
- "6379:6379" # Redis
|
|
12
|
-
env_file:
|
|
13
|
-
- .env
|
|
14
|
-
- .env.local
|
|
15
|
-
environment:
|
|
16
|
-
- STEEDOS_WIDGETS_ADDITIONAL=@steedos-widgets/liveblocks
|
|
17
|
-
- STEEDOS_AUTH_COOKIES_USE_SAMESITE=None
|
|
18
|
-
- STEEDOS_TENANT_ENABLE_REGISTER=false
|
|
19
|
-
- STEEDOS_TENANT_ENABLE_CREATE_TENANT=false
|
|
20
|
-
- B6_PORT=5100
|
|
21
|
-
- B6_MO_LOG_LEVEL=warn
|
|
22
|
-
- STEEDOS_INITIAL_PACKAGES=file:/steedos-packages/media-report,file:/steedos-packages/sync_orgs_users
|
|
23
|
-
volumes:
|
|
24
|
-
- "./steedos-storage:/steedos-storage"
|
|
25
|
-
- "../steedos-packages:/steedos-packages"
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
require('dotenv-flow').config({
|
|
3
|
-
path: path.join(__dirname, '.')
|
|
4
|
-
});
|
|
5
|
-
|
|
6
|
-
// Moleculer Configuration
|
|
7
|
-
// https://moleculer.services/docs/0.14/configuration.html
|
|
8
|
-
module.exports = {
|
|
9
|
-
// Namespace of nodes to segment your nodes on the same network.
|
|
10
|
-
namespace: "steedos",
|
|
11
|
-
// Default log level for built-in console logger. It can be overwritten in logger options above.
|
|
12
|
-
// Available values: trace, debug, info, warn, error, fatal
|
|
13
|
-
logLevel: "warn",
|
|
14
|
-
|
|
15
|
-
transporter: process.env.TRANSPORTER,
|
|
16
|
-
|
|
17
|
-
// Called after broker started.
|
|
18
|
-
started(broker) {
|
|
19
|
-
broker.createService(require("@steedos/service-community"));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
};
|