Skip to content

pinkeshsharma/shortlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener – Main README

This project implements a multi-tenant URL shortener using:

  • Postgres (DB)
  • Redis (cache)
  • Backend API
    • Java → Spring Boot (shortener-service)
    • Python → FastAPI (shortener-python)
  • React App (frontend UI)

The system supports running either Java or Python backend, selectable via Docker profiles.


How to Run

From the project root (where this docker-compose.yml lives):

Run with Java backend

docker compose --profile java up --build

Run with Python backend

docker compose --profile python up --build

Services


Stop Services

docker compose down

Clean Volumes (optional)

docker compose down -v

This removes Postgres and Redis data.


Notes

  • Nginx configs are provided for both profiles:
    • nginx-java.conf → proxies to Java backend
    • nginx-python.conf → proxies to Python backend
  • The UI automatically switches backend depending on the profile used at startup.

👤 Author

Developed by Pinkesh Sharma
GitHub Profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors