yashodhanketkar / fastapicharts

API to power chart based frontend website.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API for Charts

API for charts using FastAPI

Tech Stack

  • FastAPI
  • MongoDB Atlas

Installation

Prerequisite

  • Python 3
  • Local MongoDB Server/Atlas

Steps

Install dependecies using

# install requirements
pip install -r requirements.txt

Database configuration

Method 1: Store your MongoDB url inside os environment as MONGO_URL

Method 2: Replace value of MONGO_URL inside app\server\database.py with your MongoDB url

Run program using

# for windows
py app\main.py

# for linux
python3 app/main.py

After starting server go to http://127.0.0.1:5555/docs for more info

Licence

MIT License

Copyright (c) 2023 Yashodhan Ketkar

About

API to power chart based frontend website.

License:MIT License


Languages

Language:Python 100.0%