Scalable Microservices Web to Remove Background
Python services including bg-remover and web use pip-tools to manage dependencies. If you will not modify dependencies, you can only use pip.
-
Using
piponly,python -m venv .venv . .venv/bin/activate # adjust this according to your shell pip install -r requirements.txt -
Using
pip-toolsRun the same command as the above,
pip install pip-toolsWhen you want to add/remove/update dependencies, you do so by modifying requirements.in. After modifying it, compile by running
pip-compile requirements.in, then sync with your current environment usingpip-sync requirements.txt. When needed, you can also run the same command but usingdev-requirements.{in,txt}(for requirements like linters, convenient CLIs, etc.).
First, make sure you have key.json file at the root of the repository (adjacent to the docker-compose.yaml file). If you don't have it already, you can generate one by setting up gcloud CLI and create a service account (see it here).
docker compose build
docker compose up
You can access the website in your localhost:7000