MVP¶
ADA PROCESS: 1. [x] AWS: VSC > EC2 > NGINX 2. [x] DATA: SS > BO > MONGO 3. [x] APP: FAPI > TEMP > JS
AWS¶
- LOCAL: VSC, WSL2, U20, PY3, GITHUB, VENV, UVI, DOCKER, DC
- AWS: EC2, SSH, U20,
- HTTPS: NGINX,
DATA¶
- MONGO
- DBS: MSCORE
- COLLECTIONS: APP, FAD, MS, SPM
- SCHEMAS:
APP¶
- Appp Setup
- FASTAPI: MAIN,
- _data: mongo, mongoLatest
- _static: mdb, images, b5,
- LIBS:
- TEMPL: JINJA2,
- MDB: LAYOUT, COMPONENTS,
TOPICS¶
cheat¶
print(python)
PROCESS¶
- Local DEV: Run Uvicorn
cd ~/GETDATA/app && source venv/bin/activate && uvicorn BO:app --host 0.0.0.0 --port 30000
- Local DC (Docker-compose):
cd ~/GETDATA && docker-compose -f docker-compose-app.yml up
- Push to GitHub:
deactivate && cd ~/MSCORE && cd ~/MSCORE/ && git add \* && git commit -m "update" && git push -u origin main && clear
- EC2: SSH > cd BO > Git pull > DC up
Setup¶
- Set up:
git clone https://github.com/flexappdev/GETDATA
- Run Fast API BO:
clear && cd ~/GETDATA/app && source venv/bin/activate && uvicorn BO:app --host 0.0.0.0 --port 30000
- Run docs:
clear && cd ~/GETDATA/app && source venv/bin/activate && uvicorn backoffice:app --host 0.0.0.0 --port 30001
- Get Data (Manually daily):
clear && cd ~/GETDATA/app && source venv/bin/activate && python3 main.py
MKDOCS¶
- Overview
- Start
- Setup
- Reference
- Update
MDB¶
- Overview
- Start
- Setup
- Reference
- Update
- MDB Datagrid (similar to https://mdbootstrap.com/snippets/Standard/mdbootstrap/4066113)
- MDB Modal (https://mdbootstrap.com/docs/standard/components/modal/)
CSS¶
- Overview
- Start
- Setup
- Reference
MARKUP¶
- Overview
- Start
- Setup
- Reference
FASTAPI¶
- Overview
- Start
- Setup
- Reference
JS¶
- Overview
- Start
- Setup
- Reference