ApiLogicServer 14.3.25__py3-none-any.whl → 14.5.0__py3-none-any.whl
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.
- api_logic_server_cli/add_cust/add_cust.py +283 -0
- api_logic_server_cli/api_logic_server.py +18 -250
- api_logic_server_cli/api_logic_server_info.yaml +3 -3
- api_logic_server_cli/cli.py +54 -35
- api_logic_server_cli/create_from_model/__pycache__/api_logic_server_utils.cpython-312.pyc +0 -0
- api_logic_server_cli/create_from_model/__pycache__/create_db_from_model.cpython-312.pyc +0 -0
- api_logic_server_cli/create_from_model/__pycache__/dbml.cpython-312.pyc +0 -0
- api_logic_server_cli/create_from_model/__pycache__/ont_build.cpython-312.pyc +0 -0
- api_logic_server_cli/create_from_model/__pycache__/ont_create.cpython-312.pyc +0 -0
- api_logic_server_cli/create_from_model/api_logic_server_utils.py +47 -0
- api_logic_server_cli/create_from_model/create_db_from_model.py +2 -0
- api_logic_server_cli/create_from_model/dbml.py +113 -58
- api_logic_server_cli/create_from_model/ont_build.py +102 -74
- api_logic_server_cli/create_from_model/ont_create.py +7 -6
- api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/.DS_Store +0 -0
- api_logic_server_cli/database/basic_demo.sqlite +0 -0
- api_logic_server_cli/database/basic_demo.txt +1 -0
- api_logic_server_cli/database/basic_demo_wg.sqlite +0 -0
- api_logic_server_cli/database/nw-gold-fix.sql +62 -0
- api_logic_server_cli/database/nw-gold.sqlite +0 -0
- api_logic_server_cli/{prototypes/manager/webgenai → fragments}/docker-compose.yml +1 -1
- api_logic_server_cli/genai/genai.py +42 -11
- api_logic_server_cli/genai/genai_graphics.py +252 -38
- api_logic_server_cli/genai/genai_svcs.py +20 -12
- api_logic_server_cli/manager.py +22 -12
- api_logic_server_cli/prototypes/.DS_Store +0 -0
- api_logic_server_cli/prototypes/base/.DS_Store +0 -0
- api_logic_server_cli/prototypes/base/.vscode/launch.json +22 -2
- api_logic_server_cli/prototypes/base/api/expose_api_models.py +3 -1
- api_logic_server_cli/prototypes/base/api_logic_server_run.py +5 -2
- api_logic_server_cli/prototypes/base/config/activate_logicbank.py +1 -0
- api_logic_server_cli/prototypes/base/config/config.py +123 -25
- api_logic_server_cli/prototypes/base/config/default.env +7 -1
- api_logic_server_cli/prototypes/base/config/logging.yml +1 -0
- api_logic_server_cli/prototypes/base/config/server_setup.py +33 -1
- api_logic_server_cli/prototypes/base/database/test_data/readme.md +5 -2
- api_logic_server_cli/prototypes/base/devops/docker-standard-image/docker-compose-standard-image.yml +7 -2
- api_logic_server_cli/prototypes/base/docs/training/logic_bank_api.prompt +314 -0
- api_logic_server_cli/prototypes/base/docs/training/logic_example.py +41 -0
- api_logic_server_cli/prototypes/base/integration/kafka/kafka_producer.py +12 -5
- api_logic_server_cli/prototypes/base/integration/n8n/n8n_producer.py +68 -21
- api_logic_server_cli/prototypes/base/integration/n8n/n8n_readme.md +19 -0
- api_logic_server_cli/prototypes/base/integration/system/FlaskKafka.py +5 -1
- api_logic_server_cli/prototypes/base/test/basic/server_test.py +1 -1
- api_logic_server_cli/prototypes/base/ui/templates/bar_chart.jinja +64 -0
- api_logic_server_cli/prototypes/basic_demo/README.md +29 -52
- api_logic_server_cli/prototypes/basic_demo/customizations/api/.DS_Store +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/api/api_discovery/mcp_server_executor.py +138 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/api/api_discovery/openapi.py +92 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/api/api_discovery/proper_update_def.json +71 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/config/default.env +13 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/database/db.sqlite +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/database/models.py +131 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/.DS_Store +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/.DS_Store +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/1_langchain_loader.py +71 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/2_gpt_mcp_prompt.txt +19 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/README_mcp.md +13 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/mcp_client_executor.py +295 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/mcp_schema.txt +47 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/mcp_server_discovery.json +9 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/multi_mcp_flow/multi_mcp_flow.png +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/multi_mcp_flow/multi_mcp_orchestration.yaml +49 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/multi_mcp_flow/wny mcp flows.png +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/natlang_to_api.py +73 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/curl.txt +5 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/images/MCP Overview.png +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/images/MCP_Arch.png +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/images/MCP_Overview_Executor.png +0 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/invoke_llm/1 - prompt_messages_array.json +10 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/invoke_llm/2 - completion_tool_context.json +12 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/llm_schema.txt +38 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/nw_swagger_2.yaml +17393 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/nw_swagger_3.yaml +16660 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/nw_swagger_3_relaxed.yaml +109 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/proxy_server.py +51 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/proxy_serverZ.py +72 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/resources/validate_jsonapi.py +64 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/run_executor.py +23 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/swagger_converter.py +65 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/mcp/z_old/3_executor_test_agent.py +52 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/3_executor_test_agent.py +52 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/README_functon.md +201 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/ai_plugin.json +17 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/nw-swagger_3.json +1731 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/snippets.txt +5 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/swagger_3 genai_demo_with_get.json +1731 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/swagger_3.json +1782 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/swagger_3_genai_demo.json +264 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/integration/openai_function/swagger_3_genai_demo_with_update.json +1782 -0
- api_logic_server_cli/prototypes/basic_demo/customizations/logic/declare_logic.py +62 -44
- api_logic_server_cli/prototypes/basic_demo/customizations/security/declare_security.py +11 -12
- api_logic_server_cli/prototypes/basic_demo/customizations/ui/admin/admin.yaml +166 -0
- api_logic_server_cli/prototypes/basic_demo/iteration/api/{customize_api.py → api_discovery/order_b2b.py} +17 -23
- api_logic_server_cli/prototypes/basic_demo/iteration/database/db.sqlite +0 -0
- api_logic_server_cli/prototypes/basic_demo/iteration/integration/row_dict_maps/OrderB2B.py +6 -5
- api_logic_server_cli/prototypes/basic_demo/iteration/integration/row_dict_maps/OrderShipping.py +4 -4
- api_logic_server_cli/prototypes/basic_demo/iteration/logic/declare_logic.py +69 -43
- api_logic_server_cli/prototypes/basic_demo/iteration/ui/admin/admin.yaml +125 -50
- api_logic_server_cli/prototypes/genai_demo/ui/admin/admin.yaml +1 -1
- api_logic_server_cli/prototypes/manager/README.md +30 -4
- api_logic_server_cli/prototypes/manager/README_X.md +663 -0
- api_logic_server_cli/prototypes/manager/system/genai/.DS_Store +0 -0
- api_logic_server_cli/prototypes/manager/system/genai/examples/.DS_Store +0 -0
- api_logic_server_cli/prototypes/manager/system/genai/examples/genai_demo/.DS_Store +0 -0
- api_logic_server_cli/prototypes/manager/system/genai/examples/genai_demo/genai_demo.prompt +0 -10
- api_logic_server_cli/prototypes/manager/system/genai/examples/genai_demo/genai_demo.response_example +32 -10
- api_logic_server_cli/prototypes/manager/system/genai/examples/genai_demo/genai_demo_docs_logic/docs/002_create_db_models.prompt +4 -4
- api_logic_server_cli/prototypes/manager/system/genai/examples/genai_demo/genai_demo_docs_logic/docs/003_create_db_models.response +77 -47
- api_logic_server_cli/prototypes/manager/system/genai/examples/genai_demo/genai_demo_informal.prompt +1 -1
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/dashboard_services.jinja +83 -0
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/graphics_dashboard_WIP.py +34 -0
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/{graphics_services.py → graphics_services_api_xxx.py} +0 -9
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/graphics_services_db.jinja +46 -0
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/graphics_services_db_each_method.jinja +36 -0
- api_logic_server_cli/prototypes/manager/system/genai/prompt_inserts/graphics.prompt +7 -3
- api_logic_server_cli/prototypes/manager/system/genai/prompt_inserts/response_format.prompt +8 -1
- api_logic_server_cli/prototypes/manager/system/install-ApiLogicServer-dev/install-ApiLogicServer-dev.ps1 +100 -0
- api_logic_server_cli/prototypes/manager/system/install-ApiLogicServer-dev/install-ApiLogicServer-dev.sh +116 -0
- api_logic_server_cli/prototypes/manager/system/install-ApiLogicServer-dev/readme.md +7 -0
- api_logic_server_cli/prototypes/manager/system/style-guide.yaml +2 -2
- api_logic_server_cli/prototypes/manager/webgenai/README.md +6 -0
- api_logic_server_cli/prototypes/nw/docs/graphics/count_orders_by_category.prompt +1 -0
- api_logic_server_cli/prototypes/nw/docs/graphics/order_count_by_month.prompt +1 -0
- api_logic_server_cli/prototypes/nw/docs/graphics/request copy.json +892 -0
- api_logic_server_cli/prototypes/nw/docs/graphics/request.json +6 -0
- api_logic_server_cli/prototypes/nw/docs/graphics/response.json +17 -0
- api_logic_server_cli/prototypes/nw/docs/graphics/response.yaml +59 -0
- api_logic_server_cli/prototypes/nw/docs/graphics/sales_by_category.prompt +1 -0
- api_logic_server_cli/prototypes/nw/ui/admin/home.js +5 -4
- api_logic_server_cli/prototypes/nw/ui/app_model_custom.yaml +851 -1082
- api_logic_server_cli/prototypes/nw_no_cust/Tutorial.md +45 -26
- api_logic_server_cli/prototypes/nw_no_cust/api/api_discovery/openapi.py +130 -0
- api_logic_server_cli/prototypes/nw_no_cust/api/api_discovery/proper_update_def.json +71 -0
- api_logic_server_cli/prototypes/nw_no_cust/config/default.env +13 -0
- api_logic_server_cli/prototypes/nw_no_cust/docs/graphics/count_orders_by_category.prompt +1 -0
- api_logic_server_cli/prototypes/nw_no_cust/docs/graphics/sales_by_employee.prompt +1 -0
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/nginx/nginx.conf +2 -2
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/package-lock.json +9725 -1180
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/package.json +6 -9
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/src/app/app.config.ts +2 -1
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/src/app/shared/app.services.config.ts +1 -1
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/src/assets/css/app.scss +4 -0
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/src/assets/i18n/en.json +1 -1
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/src/assets/i18n/es.json +14 -12
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/src/environments/environment.prod.ts +5 -5
- api_logic_server_cli/prototypes/ont_app/ontimize_seed/src/environments/environment.ts +5 -5
- api_logic_server_cli/prototypes/ont_app/templates/app_config.jinja +1 -1
- api_logic_server_cli/prototypes/ont_app/templates/date_template.html +1 -1
- api_logic_server_cli/prototypes/ont_app/templates/detail_template.html +1 -1
- api_logic_server_cli/prototypes/ont_app/templates/new_template.html +16 -16
- api_logic_server_cli/prototypes/ont_app/templates/textarea_template.html +1 -1
- api_logic_server_cli/prototypes/ont_app/templates/timestamp_template.html +1 -1
- api_logic_server_cli/prototypes/sample_ai/logic/declare_logic.py +30 -13
- apilogicserver-14.5.0.dist-info/METADATA +76 -0
- {apilogicserver-14.3.25.dist-info → apilogicserver-14.5.0.dist-info}/RECORD +160 -88
- {apilogicserver-14.3.25.dist-info → apilogicserver-14.5.0.dist-info}/WHEEL +1 -1
- api_logic_server_cli/prototypes/basic_demo/apply_customizations.ps1 +0 -17
- api_logic_server_cli/prototypes/basic_demo/apply_customizations.sh +0 -14
- api_logic_server_cli/prototypes/basic_demo/apply_iteration.ps1 +0 -20
- api_logic_server_cli/prototypes/basic_demo/apply_iteration.sh +0 -15
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/service_template_jsonapi_rpc.jinja +0 -37
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/service_template_unused.jinja +0 -38
- apilogicserver-14.3.25.dist-info/METADATA +0 -167
- {apilogicserver-14.3.25.dist-info → apilogicserver-14.5.0.dist-info}/entry_points.txt +0 -0
- {apilogicserver-14.3.25.dist-info → apilogicserver-14.5.0.dist-info}/licenses/LICENSE +0 -0
- {apilogicserver-14.3.25.dist-info → apilogicserver-14.5.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
|
|
2
|
+
param(
|
|
3
|
+
[Parameter()]
|
|
4
|
+
[String]$IDE
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
SRA="venv/lib/python3.12/site-packages/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build"
|
|
8
|
+
|
|
9
|
+
if (Test-Path -Path $SRA) {
|
|
10
|
+
Write-Output " "
|
|
11
|
+
Write-Output "(SRA location verified)"
|
|
12
|
+
Write-Output " "
|
|
13
|
+
} else {
|
|
14
|
+
Write-Output " "
|
|
15
|
+
Write-Output "Safrs React Admin (SRA) not found - please fix line above"
|
|
16
|
+
Write-Output " "
|
|
17
|
+
Exit 1
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
$clonedocs = $true
|
|
21
|
+
Write-Output "IDE specified as: $IDE"
|
|
22
|
+
|
|
23
|
+
if($IDE -eq "") {
|
|
24
|
+
Write-Output " "
|
|
25
|
+
Write-Output "Installs dev version of ApiLogicServer and safrs-react-admin (version 7.0.15)"
|
|
26
|
+
Write-Output " .. vscode option creates venv, and starts vscode on workspace "
|
|
27
|
+
Write-Output " .. See: https://apilogicserver.github.io/Docs/Architecture-Internals"
|
|
28
|
+
Write-Output " "
|
|
29
|
+
Write-Output " IMPORTANT - create a folder, then install:"
|
|
30
|
+
Write-Output " > mkdir ApiLogicServer"
|
|
31
|
+
Write-Output " "
|
|
32
|
+
Write-Output " > .\Install-ApiLogicServer-Dev [ vscode | charm | x ]"
|
|
33
|
+
Write-Output " "
|
|
34
|
+
Exit
|
|
35
|
+
}
|
|
36
|
+
ls
|
|
37
|
+
Write-Output " "
|
|
38
|
+
$Ready= Read-Host -Prompt "Verify ApiLogicServer-dev does not exist, and [Enter] install *dev* version of ApiLogicServer for $1> "
|
|
39
|
+
Set-PSDebug -Trace 0
|
|
40
|
+
|
|
41
|
+
if (Test-Path -Path "ApiLogicServer-dev") {
|
|
42
|
+
Write-Output " "
|
|
43
|
+
Write-Output "Really, ApiLogicServer-dev must not exist"
|
|
44
|
+
Write-Output " "
|
|
45
|
+
Exit 1
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
mkdir ApiLogicServer-dev
|
|
49
|
+
cd ApiLogicServer-dev
|
|
50
|
+
mkdir servers # good place to create ApiLogicProjects
|
|
51
|
+
mkdir build_and_test
|
|
52
|
+
mkdir org_git # git clones from org ApiLogicServer here
|
|
53
|
+
cd org_git
|
|
54
|
+
|
|
55
|
+
if ($clonedocs -eq $true) {
|
|
56
|
+
Write-Output "\n Docs setup (slow) "
|
|
57
|
+
git clone https://github.com/ApiLogicServer/Docs.git
|
|
58
|
+
cd Docs
|
|
59
|
+
python -m venv venv
|
|
60
|
+
venv\Scripts\activate
|
|
61
|
+
pip -m install -r requirements.txt
|
|
62
|
+
cd ..
|
|
63
|
+
} else {
|
|
64
|
+
Write-Output "\n Docs setup DECLINED "
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
git clone https://github.com/ApiLogicServer/ApiLogicServer-src.git
|
|
69
|
+
cd ApiLogicServer-src
|
|
70
|
+
ls
|
|
71
|
+
# $Ready= Read-Host -Prompt "Should be at -src - ready to copy sra build $1> "
|
|
72
|
+
cp -r ../../../$SRA api_logic_server_cli/create_from_model/safrs-react-admin-npm-build
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if ($IDE -eq "vscode") {
|
|
76
|
+
python -m venv venv
|
|
77
|
+
# pwd
|
|
78
|
+
# ls
|
|
79
|
+
venv\Scripts\activate
|
|
80
|
+
python -m pip install -r requirements.txt
|
|
81
|
+
code .vscode/ApiLogicServerDev.code-workspace
|
|
82
|
+
Set-PSDebug -Trace 0
|
|
83
|
+
Write-Output ""
|
|
84
|
+
Write-Output "Workspace opened; use pre-created Launch Configurations:"
|
|
85
|
+
Write-Output " * Run 1 - Create ApiLogicProject, then..."
|
|
86
|
+
Write-Output " * Run 2 - RUN ApiLogicProject"
|
|
87
|
+
} elseif ($IDE -eq "pycharm") {
|
|
88
|
+
charm .
|
|
89
|
+
Set-PSDebug -Trace 0
|
|
90
|
+
Write-Output " * Python Interpreter > Add New Environment (default, to create venv)"
|
|
91
|
+
Write-Output " IMPORTANT - NOT DOCKER"
|
|
92
|
+
Write-Output " * then open requirements.txt - PyCharm should **Install Requirements**"
|
|
93
|
+
Write-Output " If this fails, use a terminal to run pip install -r requirements.txt"
|
|
94
|
+
} else {
|
|
95
|
+
Write-Output "No IDE started"
|
|
96
|
+
}
|
|
97
|
+
Write-Output ""
|
|
98
|
+
Write-Output "IDEs are preconfigured with run/launch commands to create and run the sample"
|
|
99
|
+
Write-Output ""
|
|
100
|
+
exit 0
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
contains()
|
|
4
|
+
# echo contains check $1 in $2
|
|
5
|
+
case "$1" in
|
|
6
|
+
(*"$2"*) true;;
|
|
7
|
+
(*) false;;
|
|
8
|
+
esac
|
|
9
|
+
|
|
10
|
+
sra="venv/lib/python3.12/site-packages/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build"
|
|
11
|
+
if [ -d $src ]
|
|
12
|
+
then
|
|
13
|
+
echo "\n(SRA location verified)\n"
|
|
14
|
+
else
|
|
15
|
+
echo "\n(SRA location not found)\n"
|
|
16
|
+
echo "Please fix variable above"
|
|
17
|
+
exit 1
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
sra_curl="0.2.9/$sra"
|
|
21
|
+
|
|
22
|
+
ostype=$(uname -a)
|
|
23
|
+
if contains "Ubuntu" $ostype; then
|
|
24
|
+
ostype="ubuntu"
|
|
25
|
+
fi
|
|
26
|
+
# if contains "ubuntu" $ostype; then
|
|
27
|
+
# echo $ostype contains ubuntu
|
|
28
|
+
# fi
|
|
29
|
+
|
|
30
|
+
# normally true, use false for skipping long clone during testing
|
|
31
|
+
clonedocs=true
|
|
32
|
+
|
|
33
|
+
if [ $# -eq 0 ]
|
|
34
|
+
then
|
|
35
|
+
echo " "
|
|
36
|
+
# echo "shell: $SHELL"
|
|
37
|
+
echo "Installs dev version of ApiLogicServer and safrs-react-admin on $ostype (version 7.0.15)\n"
|
|
38
|
+
echo " .. vscode option creates venv, and starts vscode on workspace"
|
|
39
|
+
echo " .. See: https://apilogicserver.github.io/Docs/Architecture-Internals"
|
|
40
|
+
echo " "
|
|
41
|
+
echo " > sh system/install-ApiLogicServer-dev/install-ApiLogicServer-dev.sh [ vscode | charm | x ]"
|
|
42
|
+
echo " "
|
|
43
|
+
exit 0
|
|
44
|
+
else
|
|
45
|
+
ls
|
|
46
|
+
echo " "
|
|
47
|
+
read -p "Verify ApiLogicServer-dev does not exist, and [Enter] install *dev* version of ApiLogicServer for $1> "
|
|
48
|
+
if [ -d "ApiLogicServer-dev" ]
|
|
49
|
+
then
|
|
50
|
+
echo "\nReally, ApiLogicServer-dev must not exist\n"
|
|
51
|
+
exit 1
|
|
52
|
+
fi
|
|
53
|
+
set -x
|
|
54
|
+
mkdir ApiLogicServer-dev
|
|
55
|
+
cd ApiLogicServer-dev
|
|
56
|
+
mkdir servers # good place to create ApiLogicProjects
|
|
57
|
+
mkdir build_and_test
|
|
58
|
+
mkdir org_git # git clones from org ApiLogicServer here
|
|
59
|
+
cd org_git
|
|
60
|
+
|
|
61
|
+
if [ "$clonedocs" = true ]
|
|
62
|
+
then
|
|
63
|
+
git clone https://github.com/ApiLogicServer/Docs
|
|
64
|
+
cd Docs
|
|
65
|
+
python3 -m venv venv # may require python -m venv venv
|
|
66
|
+
if contains "ubuntu" $ostype; then
|
|
67
|
+
echo $ostype contains ubuntu
|
|
68
|
+
. venv/bin/activate
|
|
69
|
+
else
|
|
70
|
+
echo $ostype does not contain ubuntu
|
|
71
|
+
source venv/bin/activate # windows venv\Scripts\activate
|
|
72
|
+
fi
|
|
73
|
+
pip install -r requirements.txt
|
|
74
|
+
cd ..
|
|
75
|
+
fi
|
|
76
|
+
|
|
77
|
+
git clone https://github.com/ApiLogicServer/ApiLogicServer-src.git
|
|
78
|
+
cd ApiLogicServer-src
|
|
79
|
+
echo "\ncopying $sra --> ApiLogicServer"
|
|
80
|
+
cp -r ../../../$sra api_logic_server_cli/create_from_model/safrs-react-admin-npm-build
|
|
81
|
+
|
|
82
|
+
#
|
|
83
|
+
#
|
|
84
|
+
# read -p "Installed - ready to launch IDE..."
|
|
85
|
+
if [ "$1" = "vscode" ]
|
|
86
|
+
then
|
|
87
|
+
python3 -m venv venv # may require python -m venv venv
|
|
88
|
+
# pwd
|
|
89
|
+
# ls
|
|
90
|
+
. venv/bin/activate
|
|
91
|
+
# read -p "venv created; do optional pre-installs now $1> "
|
|
92
|
+
python3 -m pip install -r requirements.txt # you may need to use pip3, or restart your terminal session
|
|
93
|
+
code .vscode/ApiLogicServerDev.code-workspace
|
|
94
|
+
set +x
|
|
95
|
+
echo ""
|
|
96
|
+
echo "Workspace opened; use pre-created Launch Configurations:"
|
|
97
|
+
echo " * Run 1 - Create ApiLogicProject, then..."
|
|
98
|
+
echo " * Run 2 - RUN ApiLogicProject"
|
|
99
|
+
elif [ "$1" = "charm" ]
|
|
100
|
+
then
|
|
101
|
+
charm .
|
|
102
|
+
set +x
|
|
103
|
+
echo " * Python Interpreter > Add New Environment (default, to create venv)"
|
|
104
|
+
echo " IMPORTANT - NOT DOCKER"
|
|
105
|
+
echo " * then open requirements.txt - PyCharm should **Install Requirements**"
|
|
106
|
+
echo " If this fails, use a terminal to run pip install -r requirements.txt"
|
|
107
|
+
else
|
|
108
|
+
set +x
|
|
109
|
+
fi
|
|
110
|
+
echo ""
|
|
111
|
+
echo "IDEs are preconfigured with run/launch commands to create and run the sample"
|
|
112
|
+
echo ""
|
|
113
|
+
echo "ApiLogicServer/react-admin contains shell burn-and-rebuild-react-admin"
|
|
114
|
+
echo ""
|
|
115
|
+
exit 0
|
|
116
|
+
fi
|
|
@@ -12,7 +12,7 @@ date_format: 'LL'
|
|
|
12
12
|
edit_on_mode : 'dblclick'
|
|
13
13
|
min_decimal_digits: '2'
|
|
14
14
|
max_decimal_digits: '4'
|
|
15
|
-
decimal_min: '
|
|
15
|
+
decimal_min: '2'
|
|
16
16
|
decimal_max: '1000000000'
|
|
17
17
|
row_height: small,
|
|
18
18
|
include_translation: 'false'
|
|
@@ -20,7 +20,7 @@ use_keycloak: 'false'
|
|
|
20
20
|
keycloak_url: http://localhost:8080
|
|
21
21
|
keycloak_realm: kcals
|
|
22
22
|
keycloak_client_id: alsclient
|
|
23
|
-
serviceType:
|
|
23
|
+
serviceType: JSONAPI
|
|
24
24
|
locale: en
|
|
25
25
|
applicationLocales: ["en","es"]
|
|
26
26
|
startSessionPath: /auth/login
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Default location for WebGenAI - projects, sqlite databases, etc.
|
|
2
|
+
* Examine these to verify genai logic, but use export to debug or make changes.
|
|
3
|
+
* See [Export](https://apilogicserver.github.io/Docs/WebGenAI-CLI/#export)
|
|
4
|
+
* See [Import / Merge WebGenai](https://apilogicserver.github.io/Docs/IDE-Import-WebGenAI/)
|
|
5
|
+
|
|
6
|
+
See docker_compose for WebGenAI run instructions.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Graph number of sales per category, for dashboard
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Graph count orders by month
|