A fastapi service for code sharing.
- Download this project
git clone https://github.com/sparrowsurya/pastebin-api
- Setup
virtualenv venv
source venv/bin/activate
Create a .env
file with following values (fill the respective values of DB_URL
)
ENV_NAME=development
BASE_URL=127.0.0.1:8000
DB_URL=postgresql://USERNAME:PASSWORD@HOSTNAME:PORT/DATABASE
INTERVAL=3600
- Install dependencies
python3 -m pip install -r requirements.txt
- Run the api
uvicorn api.main:app --log-config=log_config.json