A full-stack application for removing image backgrounds. It provides a Next.js frontend for uploading and previewing images and a FastAPI backend for processing image background removal.
- Next.js (React framework)
- TypeScript
- Tailwind CSS
- Docker support
- FastAPI (Python web framework)
- Uvicorn (ASGI server)
- Pillow / Image libraries for processing
- Docker support
Background-Remover-main/
│── frontend/ # Next.js frontend
│ ├── app/ # App router pages & APIs
│ ├── public/ # Static files
│ ├── package.json # Frontend dependencies
│ └── Dockerfile # Container setup
│
│── backend/ # FastAPI backend
│ ├── app/main.py # API entrypoint
│ ├── requirements.txt # Backend dependencies
│ └── Dockerfile # Container setup
│
│── docker-compose.yml # Multi-service orchestration
│── README.md # Documentation
│── LICENSE
git clone https://github.com/itshivams/background-remover.git
cd background-removerMake sure you have Docker and Docker Compose installed. Then run:
docker-compose up --build- Frontend will be available at: http://localhost:3000
- Backend will be available at: http://localhost:8000
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000➡ API will run on http://localhost:8000
cd frontend
npm install
npm run dev➡ App will run on http://localhost:3000
Contributions are welcome! 🎉
-
Fork the repo
-
Create your feature branch
git checkout -b feature/my-feature
-
Commit your changes
git commit -m "Add my feature" -
Push to branch
git push origin feature/my-feature
-
Open a Pull Request