See the main repo here : https://github.com/nicolas-sarramagna/example_reporting_main
-
get the source code of the project
-
without docker : in a terminal, type uvicorn example_reporting_web_services.app_ws:app
or
with docker : in a terminal, type docker-compose up
- Endpoints without docker :
- GET http://localhost:8000/api/v1/trend/indicator/investing -> json
- GET http://localhost:8000/api/v1/trend/indicator/tradingview -> json (takes more time due to javascript async in the html page)
- GET http://localhost:8000/api/v1/trend/chart/investtech/graph -> image png
- GET http://localhost:8000/api/v1/trend/chart/investtech/rsi -> image png
With docker, the port is 10503 (defined in the file docker-compose.yml)
Image repo Docker Hub : https://hub.docker.com/r/sarramagna/example_reporting_web_services
- get the file prod.yml
- in a terminal, type docker-compose -f prod.yml up
- Endpoints on port 20503 (defined in prod.yml)