Skip to content

Building an Analytics API service using Python, FastAPI, and Time-series PostgreSQL with TimescaleDB.

Notifications You must be signed in to change notification settings

shankarkarki/FASTAPI-for-TimeSeries

Repository files navigation

Working with FASTAPI and TimeSeries DB

Building an Analytics API service using Python, FastAPI, and Time-series PostgreSQL with TimescaleDB.

Prerequisites

  • Docker
  • Docker Compose
  • Python 3.x
  • PostgreSQL (TimescaleDB)

Setup & Usage

Build and Run with Docker

docker build -t analytics-api -f Dockerfile.web .
docker run analytics-api

Using Docker Compose

docker compose up --watch

To stop and remove containers:

docker compose down

To stop and remove containers with volumes:

docker compose down -v

Running Commands in the Container

To access the container shell:

docker compose run app /bin/bash

To run Python inside the container:

docker compose run app python

About

Building an Analytics API service using Python, FastAPI, and Time-series PostgreSQL with TimescaleDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published