Skip to content

andredotpy/url_shortener_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

url_shortener_api

A simple API following Real Python Tutorial (https://realpython.com/lessons/url-shortener-fastapi-overview/) for building a URL shortener.
This project uses FastAPI and SQLAchemy as framework and ORM and uvicorn as server.

To run this project do:

  • Create a Python virtual enviorment
python3 -m venv venv
  • Install dependencies with
python3 -m pip install -r requirements.txt
  • Create a .env file with your variables as follows
ENV_NAME="Development"
BASE_URL="http://127.0.0.1:8000"
DB_URL="sqlite:///./shortener.db"
  • Run the server
uvicorn shortener_app.main:app --reload 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages