Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.12 KB

README.md

File metadata and controls

45 lines (37 loc) · 1.12 KB

https://github.com/AdelEddarai/Blockchain-FastAPI/

Getting started with Python Blockchain and FastAPI

This FastAPI application implements some Algorand blockchain processes.


Security warning

This project has not been tested and should never be used in production


Requirements

You must have python 3 installed on your system. Also for this tutorial you will need python3-venv. This package can be installed with the following command.

$ sudo apt-get install python3-venv

Setup

First create a root folder for the project

cd ~
mkdir Block-FastApi
cd Block-FastApi

Then clone this repository into it

cd Block-FastApi

Then create and activate a new virtual environment

python3 -m venv Block-FastApi
./Block-FastApi/bin/activate

Then install all dependencies with the following command

(Block-FastApi) $ pip3 install -r requirements.txt

Now you can run the application with this command

(Block-FastApi) $ uvicorn main:app --reload

As soon as the application starts, you will have access to the online documentation at http://127.0.0.1:8000/docs#/