Face Swap AI Gallery, Made Easy
SwapGals is a user-friendly AI application that simplifies the process of creating and customizing face swap images. The app features a clean and simple interface, making it easy for users to generate, modify, and explore unique face swap creations.
/backend
: Node.js Express backend. (Interviewer Asked me to do this don't question why I don't use API routes ok?)/frontend
: Next.js frontend.
asumme you have the following installed
- nodejs 20.x.x or higher
- pnpm and or npm or yarn
- docker
- docker-compose
- git
- Access To Replicate API
- Clone the repo
git clone https://github.com/HRNPH/fast_face_swap
cd fast_face_swap
- Install dependencies
cd backend && pnpm install
cd ../frontend && pnpm install
- Start the backend
- Create a
.env
file in the backend directory - install dependencies and start the backend
# take a look at the .env.example file for reference
cd backend && touch .env
# spin up the database using docker-compose
docker-compose up -d
pnpm install # install dependencies
pnpm run dev
- Start the frontend
- Create a
.env
file in the backend directory - install dependencies and start the frontend
# take a look at the .env.example file for reference
cd frontend && touch .env
pnpm install # install dependencies
pnpm run dev