Skip to content

rodgetech/bg-removal-app

Repository files navigation

Background Removal App

This project allows users to remove the background from their photos using AI.

Remove Background App

How it works

Background removal is made possible by using the modnet approach via Replicate. This project allows users to upload a photo which will first be stored in firebase storage, forwarded to a google cloud function managed in rowy, and lastly utilize the Replicate API to return the photo with its background removed. All data such as user profile, generated images, and credit packges are stored in Firestore, while the associated stripe payment webhook and cloud functions are all managed in Rowy.

Running locally

Creating a account on Replicate to get API key.

  1. Visit Replicate to create an account.
  2. Click on Account in the menu. And, here you can find your API token, copy it.

Creating a stripe account.

  1. Go to Stripe to create an account.
  2. Once you're signed in, ensure test mode is on and the go to the API keys section to get youre api key.

Creating a Rowy account.

Add steps here.

Storing API keys in .env.local

Create a .env.local file in the root of the project. And store your API key in it, as shown in the .env.local.example file.

Install dependencies:

npm install

Run the dev server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

About

Remove the background from photos using AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published