8000 GitHub - lone-starr/mempool_api · GitHub
[go: up one dir, main page]

Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

Repository files navigation

Mempool API

This repository builds a FastAPI based API used as a gateway to Bitcoin network metrics and other data as needed for the mempool dashboard and other applications.

Setting Up

Clone the Repository:

git clone https://github.com/lone-starr/mempool_api.git
cd mempool_api

Create a fresh Python virtual environment

python3 -m venv ./venv

Select Python interpretor (Visual Studio Code)

Open VS Code from the mempool_api directory:

code .

In VS Code press < Ctrl >< Shift >< p >, type Python and choose 'Python: Select Interpretor', choose the newly created venv for mempool_api

Install Dependencies

Open a new Terminal in VS Code and use the following command to install the required dependencies. Your Python venv should be indicated in your terminal shell.

pip install -r requirements.txt

Environment Variables

Create a .env file with the necessary credentials and API keys for your MongoDB instance. You can create a free cluster to host your collection at https://cloud.mongodb.com/ or create a MongoDB instance on Railway.

Run locally

Run service locally:

uvicorn main:app

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0