Code Monkey home page Code Monkey logo

ativos-app's Introduction

Projeto Ativos APP

🎯 Objetivo


Sumário

  1. Objetivo
  2. Configuração do Ambiente
  3. Executar o Projeto
    1. Executar o Backend
    2. Executar o Frontend
  4. Executar o Projeto com o Docker
  5. Urls

🛠 Configuração do Ambiente

Configuração do backend

Criar arquivo .env com os enviroments abaixo

API_PORT = 8080
API_HOST = localhost
STREAMLIT_SERVER_PORT = 8181
UVICORN_RELOAD = True
UVICORN_DEBUG = False
PLANILHA_ATIVOS = ./data/contas.xlsx

Criar o ambiente virtual

python -m venv venv

Ativar o ambiente virtual

  • No Python

    source .venv/bin/activate

  • No Windows

    .\venv\Scripts\activate

Instalar as libs do projeto

pip install -r requirements.txt


⚙️ Executar o Projeto


Executar o Backend

Mover para pasta do projeto backend

cd backend

Executar o comando abaixo para usar o console

python -m src

Executar o comando abaixo para usar a api

python run_api.py

ou

uvicorn src.api:api --port=8080 --reload

Executar o comando abaixo para usar o streamlit

streamlit run src/streamlit.py


Executar o Frontend

Mover para pasta do projeto frontend

cd frontend

Executar o comando

npm run start


⚙️ Executar o Projeto com o Docker

Executar o comando

docker-compose up -d


⚡ Urls

Api Root

http://localhost:8080/api/v1/

Api Docs

http://localhost:8080/api/v1/documentation

Stremlit

http://localhost:8181

API Recursos



Informações Sobre o projeto


Backend

Libs instaladas no Backend

  • pip install fastapi
  • pip install uvicorn
  • pip install python-dotenv
  • pip install pandas
  • pip install openpyxl
  • pip install streamlit
  • pip install streamlit-aggrid

Gerar o arquivo requeriments do projeto Backend

pip freeze > requirements.txt

Listar as libs do projeto Backend

pip list


Frontend

Libs instaladas no Frontend

REFERÊNCIAS

Backend:

Fast api: https://fastapi.tiangolo.com/

Frontend:

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/

ativos-app's People

Contributors

carmopjunior avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.