A python + react project to test an API that simulates an interaction with a generative AI model
Con IDE PyCharm configurare virtualenv e lanciare il progetto con il file app.py presente nella folder backend
-
Installare node 20+ e pnpm
-
Lanciare pnpm install dalla folder frontend
-
Lanciare il task pnpm run dev per avviare il frontend
-
Il frontend è un progetto VITE che usa un proxy di sviluppo per puntare correttamente al backend
-
In modalità container il FE viene servito direttamente dal backend (vedi Dockerfile)
- docker build -t chatbot-fullstack-test .
- docker run -p 8000:8000 chatbot-fullstack-test
- Successivamente aprire dal browser la URL http://localhost:8000/
Dalla folder root eseguire:
- docker-compose build
- docker compose up
- Successivamente aprire dal browser la URL http://localhost:8888/
- Created env webdev_env
- Activated env con bin/activate
- pip install Flask
- Adjusted settings to use custom env name (standard follows env .venv)
- Created app.py di prova e debug con PyCharm
- install pnpm
- brew install pnpm
- create vite react app
- http://127.0.0.1:3000/apidocs/#/ added swagger
- Scaffold backend app with exagonal layers
- Add specific client_id session bound to http session
- Add client_id to service for key
- Add async operation on current user session task to update it
- Added FE scaffolding
- Added FE+BE logic integration (send message, poll for response, show response)
- Added files integration with fileStructures and blobs as base64
- Added fact check compare with pdf viewer
- Created Dockerfile multi stage to build backend and frontend
- TODO: validate create task with attachements to get only pdf files
- TODO: load all task list in session and enable fact check for just completed tasks
- split async operations to update task in two states: file ingestion, ai response received
- reate docker image and docker compose to test it like production