ApiLogicServer 14.3.20__py3-none-any.whl → 14.4.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/api_logic_server.py +5 -14
- api_logic_server_cli/api_logic_server_info.yaml +3 -3
- api_logic_server_cli/cli.py +52 -5
- 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__/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/create_db_from_model.py +2 -0
- api_logic_server_cli/create_from_model/ont_build.py +19 -14
- api_logic_server_cli/create_from_model/ont_create.py +5 -5
- api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/.DS_Store +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/fragments/docker-compose.yml +27 -0
- api_logic_server_cli/genai/genai.py +43 -11
- api_logic_server_cli/genai/genai_graphics.py +379 -0
- api_logic_server_cli/genai/genai_logic_builder.py +2 -2
- api_logic_server_cli/genai/genai_svcs.py +24 -8
- api_logic_server_cli/manager.py +19 -10
- 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 +19 -0
- 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 +95 -24
- 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 +3 -1
- api_logic_server_cli/prototypes/base/devops/docker-standard-image/docker-compose-standard-image.yml +7 -2
- api_logic_server_cli/prototypes/base/docs/graphics/readme.md +12 -0
- 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 +7 -3
- api_logic_server_cli/prototypes/base/integration/system/FlaskKafka.py +5 -1
- api_logic_server_cli/prototypes/base/security/authentication_provider/keycloak/auth_provider.py +1 -1
- api_logic_server_cli/prototypes/base/security/declare_security.py +4 -0
- api_logic_server_cli/prototypes/base/ui/admin/admin_loader.py +3 -1
- api_logic_server_cli/prototypes/base/ui/templates/bar_chart.jinja +64 -0
- api_logic_server_cli/prototypes/genai_demo/ui/admin/admin.yaml +1 -1
- api_logic_server_cli/prototypes/manager/README.md +56 -5
- 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 -8
- api_logic_server_cli/prototypes/manager/system/genai/examples/genai_demo/genai_demo.response_example +90 -60
- 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_api_xxx.py +32 -0
- 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/graphics_templates/html_template.jinja +76 -0
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/index.html +19 -0
- api_logic_server_cli/prototypes/manager/system/genai/graphics_templates/sales_by_region.jinja +63 -0
- api_logic_server_cli/prototypes/manager/system/genai/prompt_inserts/graphics.prompt +22 -0
- api_logic_server_cli/prototypes/manager/system/genai/prompt_inserts/graphics_request.prompt +5 -0
- api_logic_server_cli/prototypes/manager/system/genai/prompt_inserts/response_format.prompt +15 -0
- api_logic_server_cli/prototypes/manager/system/genai/prompt_inserts/sqlite_inserts.prompt +2 -0
- 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/docs/graphics/count_orders_by_category.prompt +1 -0
- api_logic_server_cli/prototypes/nw_no_cust/docs/graphics/request copy.json +892 -0
- api_logic_server_cli/prototypes/nw_no_cust/docs/graphics/request.json +6 -0
- api_logic_server_cli/prototypes/nw_no_cust/docs/graphics/response.json +17 -0
- api_logic_server_cli/prototypes/nw_no_cust/docs/graphics/response.yaml +59 -0
- api_logic_server_cli/prototypes/nw_no_cust/docs/graphics/sales_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/nw_no_cust/integration/mcp/1_langchain_loader.py +19 -0
- api_logic_server_cli/prototypes/nw_no_cust/integration/mcp/2_gpt_mcp_prompt.txt +19 -0
- api_logic_server_cli/prototypes/nw_no_cust/integration/mcp/3_executor_test_agent.py +38 -0
- api_logic_server_cli/prototypes/nw_no_cust/integration/mcp/README.md +17 -0
- api_logic_server_cli/prototypes/nw_no_cust/integration/mcp/resources/curl.txt +4 -0
- api_logic_server_cli/prototypes/nw_no_cust/integration/mcp/resources/nw_swagger_3.yaml +16660 -0
- api_logic_server_cli/prototypes/nw_no_cust/integration/mcp/run_executor.py +23 -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.json +6 -6
- 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/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/detail_template.html +1 -1
- api_logic_server_cli/prototypes/ont_app/templates/new_template.html +16 -16
- apilogicserver-14.4.0.dist-info/METADATA +76 -0
- {apilogicserver-14.3.20.dist-info → apilogicserver-14.4.0.dist-info}/RECORD +102 -59
- {apilogicserver-14.3.20.dist-info → apilogicserver-14.4.0.dist-info}/WHEEL +1 -1
- api_logic_server_cli/prototypes/manager/system/genai/prompt_inserts/zsqlite_inserts_iterations.prompt +0 -29
- api_logic_server_cli/prototypes/manager/webgenai/docker-compose-webg.yml +0 -33
- api_logic_server_cli/prototypes/manager/webgenai/webg_config/license.json +0 -6
- api_logic_server_cli/prototypes/manager/webgenai/webg_config/web_genai.txt +0 -13
- apilogicserver-14.3.20.dist-info/METADATA +0 -167
- {apilogicserver-14.3.20.dist-info → apilogicserver-14.4.0.dist-info}/entry_points.txt +0 -0
- {apilogicserver-14.3.20.dist-info → apilogicserver-14.4.0.dist-info}/licenses/LICENSE +0 -0
- {apilogicserver-14.3.20.dist-info → apilogicserver-14.4.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
Create WGResult Graphics, with graphics elements for each prompts like 'graph sales by region'.
|
|
3
|
+
* do not create graphics elements unless explicitly requested.
|
|
4
|
+
* query results should always return exactly 2 columns.
|
|
5
|
+
* use 'sales by region' to create a WGResult Graphic.sqlalchemy_query for *each* such line
|
|
6
|
+
* Be sure to use class names, not table names
|
|
7
|
+
* Create joins for only explicitly defined foreign key relationships
|
|
8
|
+
* for example, using Northwind - important! note the 2 right parens closing label("Total Sales"):
|
|
9
|
+
# SQLAlchemy query for Sales by Category
|
|
10
|
+
sales_by_category = (
|
|
11
|
+
session.query(
|
|
12
|
+
Category.CategoryName,
|
|
13
|
+
func.sum(OrderDetail.Quantity * OrderDetail.UnitPrice * (1 - OrderDetail.Discount)).label("TotalSales")
|
|
14
|
+
)
|
|
15
|
+
.join(Product, category.Id == Product.CategoryId)
|
|
16
|
+
.join(OrderDetail, Product.Id == OrderDetail.ProductId)
|
|
17
|
+
.join(Order, OrderDetail.OrderId == Order.Id)
|
|
18
|
+
.filter(Order.ShippedDate.isnot(None)) # Consider only shipped orders
|
|
19
|
+
.group_by(Category.CategoryName)
|
|
20
|
+
.order_by(func.sum(OrderDetail.Quantity * OrderDetail.UnitPrice * (1 - OrderDetail.Discount)).desc())
|
|
21
|
+
)
|
|
22
|
+
|
|
@@ -17,10 +17,25 @@ class TestDataRow(BaseModel):
|
|
|
17
17
|
test_data_row_variable: str # the Python test data row variable
|
|
18
18
|
code: str # Python code to create a test data row instance
|
|
19
19
|
|
|
20
|
+
class Graphic(BaseModel):
|
|
21
|
+
sqlalchemy_query: str # sqlalchemy query using group by, returns result = { "result": [ ("name", "value") ] }
|
|
22
|
+
sql_query: str # sql query using group by, returns result = { "result": [ ("name", "value") ] }
|
|
23
|
+
classes_used: str # comma-delimited list of classes used in sqlalchemy_query
|
|
24
|
+
class_x_axis: str # name of class for x axis
|
|
25
|
+
name: str # suggested Python name for sqlalchemy_query - unique
|
|
26
|
+
prompt: str # prompt used to create the graphic
|
|
27
|
+
title: str # expanded name
|
|
28
|
+
xAxis: str # caption for x axis
|
|
29
|
+
yAxis: str # caption for y axis
|
|
30
|
+
dashboard: bool # whether appears on home page
|
|
31
|
+
graph_type: str # Bar, Line, Pie
|
|
32
|
+
html_code: str # create a java script app to show a bar chart from sqlalchemy_query result
|
|
33
|
+
|
|
20
34
|
class WGResult(BaseModel): # must match system/genai/prompt_inserts/response_format.prompt
|
|
21
35
|
# response: str # result
|
|
22
36
|
models : List[Model] # list of sqlalchemy classes in the response
|
|
23
37
|
rules : List[Rule] # list rule declarations
|
|
38
|
+
graphics: List[Graphic] # list of Graphic objects
|
|
24
39
|
test_data: str
|
|
25
40
|
test_data_rows: List[TestDataRow] # list of test data rows
|
|
26
41
|
test_data_sqlite: str # test data as sqlite INSERT statements
|
|
@@ -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
|