API_PORT = 8080
API_HOST = localhost
STREAMLIT_SERVER_PORT = 8181
UVICORN_RELOAD = True
UVICORN_DEBUG = False
PLANILHA_ATIVOS = ./data/contas.xlsx
python -m venv venv
-
No Python
source .venv/bin/activate
-
No Windows
.\venv\Scripts\activate
pip install -r requirements.txt
cd backend
python -m src
python run_api.py
ou
uvicorn src.api:api --port=8080 --reload
streamlit run src/streamlit.py
cd frontend
npm run start
docker-compose up -d
-
http://localhost:8080/api/v1/dividendos/ano/ ou http://localhost:8080/api/v1/dividendos/ano/?anos=2022
-
http://localhost:8080/api/v1/vendas/lucro/ano/ ou http://localhost:8080/api/v1/vendas/lucro/ano/?anos=2022
-
http://localhost:8080/api/v1/ativos/lucro/ano/ ou http://localhost:8080/api/v1/ativos/lucro/ano/?anos=2022
- pip install fastapi
- pip install uvicorn
- pip install python-dotenv
- pip install pandas
- pip install openpyxl
- pip install streamlit
- pip install streamlit-aggrid
pip freeze > requirements.txt
pip list
Fast api: https://fastapi.tiangolo.com/
Angular Docs: https://angular.io/docs Material Theme Docs: https://material.angular.io/guide/theming ng2-charts: https://valor-software.com/ng2-charts Typescriptlang: https://www.typescriptlang.org/pt/ https://www.ideas2it.com/blogs/angular-development-best-practices/