Skip to content

Example of usages of python FastAPI, scraping (sync & async mode) and unittest

Notifications You must be signed in to change notification settings

nicolas-sarramagna/example_reporting_web_services

Repository files navigation

Example of usages of python FastAPI, scraping (sync & async mode) and unittest

Subject : trends and charts about the market Bitcoin - USD

fastapi doc swagger

Global usage :

See the main repo here : https://github.com/nicolas-sarramagna/example_reporting_main

With source code

  1. get the source code of the project

  2. without docker : in a terminal, type uvicorn example_reporting_web_services.app_ws:app

or

with docker : in a terminal, type docker-compose up

  1. Endpoints without docker :

With docker, the port is 10503 (defined in the file docker-compose.yml)

Without source code i.e with image Docker :

Image repo Docker Hub : https://hub.docker.com/r/sarramagna/example_reporting_web_services

  1. get the file prod.yml
  2. in a terminal, type docker-compose -f prod.yml up
  3. Endpoints on port 20503 (defined in prod.yml)