Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 718 Bytes

README.md

File metadata and controls

36 lines (29 loc) · 718 Bytes

Pastebin

A fastapi service for code sharing.

tests os

Run

  1. Download this project
git clone https://github.com/sparrowsurya/pastebin-api
  1. 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
  1. Install dependencies
python3 -m pip install -r requirements.txt
  1. Run the api
uvicorn api.main:app --log-config=log_config.json