BI demo
Server | Port |
---|---|
Web (Typescript) | 8000 |
Api gateway (Golang) | 8010 |
Py API (Python) | 8020 |
Biz-v1 (NodeJs) | 8030 |
Biz API (Golang) | 8040 |
FS server (Golang) | - |
DGraph server (Golang) | - |
Auth server (Rust) | 8050 |
Data server (Rust) | 8051 |
Flask Web framework
SqlAlchemy Database ORM
Pandas Data Analysis Library
[Mux]
[Mongo]
Typescript Typed JavaScript
NestJS NodeJS framework
Typeorm Database ORM
React JavaScript library
Ant design pro UI solution
Use PostgreSql as default project database (storing config etc.)
PostgreSql = 10.0, docker commands:
cd docker/docker-database
bash start.sh
bash create_database.sh
Use MongoDB for default non-schema data persistence
MongoDB, docker commands:
cd docker-mongodb
bash start.sh
bash create_unique_index.sh
versions:
commands:
cd server
pip install -r requirements.txt
versions:
commands:
cd web
npm i
or yarn
In resources
folder, new config.json
(see config.template.json).
In resources
folder, new go.env
(see go.template.env.
In resources
folder, if mongodb is running in another machine, new mongo.connection.env
(see mongo.connection.template.env.
If you haven’t initialized the submodule before, run make submodule-init
.
Otherwise, update submodule by running make submodule-update
.
Then, config the lura.json
and ua.auth.env
based on ua.auth.template.env
(you can simply copy template and rename it).
In ua.auth.env
, Make sure DATABASE_URL
is your database connection string. If the database is also running in docker and share the same network with auth-server container, rename the hostname to database’s container name. Make sure INVITATION_PAGE
is the link of cyberbrick frontend link (hostname is localhost in dev mode and the ip-address of server in production mode).
In lura.json
, rename the endpoints-backends host to the real ip-address.
todo
todo
Please cd server-py
first then run the following commands.
development:
python wsgi.py
debug mode
python wsgi.py debug=false
no-debug mode
production:
python wsgi.py --env=prod
production (docker):
setup python image, only for the first time:
cd docker/docker-python
bash setup.sh
setup dependencies installed image, rerun if dependencies updated:
cd docker/docker-base-server
bash setup.sh
setup built app image and start a container:
cd docker/docker-app-server
bash setup.sh
bash start.sh
Please cd server-go
first then run the following commands.
development:
go mod tidy
download deps
go run .
start server
production (docker):
mongoDB
and have executed the bash file create_unique_index.sh
inside docker-mongodb; a base image built from docker-go
, a resources/go.env
file with config similar to go.template.env
; and a resources/mongo.connection.env
file with similar config as mongo.connection.template.env
.make docker-biz-server-setup
and then make docker-biz-server-start
or:Please cd web
first then do the following commands.
development:
yarn serve:dev
for server side then in another terminal yarn dev
for frontendproduction:
yarn build
then yarn serve
production (docker):
setup node image, only for the first time:
cd docker/docker-node
bash setup.sh
setup dependencies installed image, rerun if dependencies updated:
cd docker/docker-base-web
bash setup.sh
setup built app image and start a container:
cd docker/docker-app-web
bash setup.sh
bash start.sh
yarn build:backend
& yarn build:frontend
building up web’s server & client respectively
TODO: updating…