Skip to content

anishfyle/fastapi-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener Service

URL shortener service built with FastAPI, SQLite, and Python.

Author: Anish Kr Singh

Setup Instructions

Prerequisites

  • Python 3.8 or higher
  • pip (Python package installer)

Installation Steps

  1. Clone the repository
git clone https://github.com/anishfyle/fastapi-backend.git
cd fastapi-backend
  1. Create a virtual environment
python -m venv fastapi_venv
  1. Activate the virtual environment

On Windows (PowerShell):

.\fastapi_venv\Scripts\Activate.ps1

On Windows (Command Prompt):

.\fastapi_venv\Scripts\activate.bat

On macOS/Linux:

source fastapi_venv/bin/activate
  1. Install required dependencies
pip install fastapi uvicorn pydantic
  1. Run the application
uvicorn main:app --reload
  1. Access the application

Database

The application uses SQLite database (urls.db) which will be automatically created when the application starts for the first time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages