This api service uses cloudinary and remove.bg api to properly get a good avatar image for a user
- node.js
- npm
https://documenter.getpostman.com/view/2263121/TzzAMwgx
Clone the repo:
git clone <repo-name>
Install dependecies
npm install
set environment variables
cp .env.example .env
Running Locally
npm run dev
Running in Production
npm run start
The environment variables can be found and modified in the .env file. They come with these default values:
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
HEIGHT=200
WIDTH=200
REMOVE_BG_API_KEY=
REMOVE_BG_BASE_URL=https://api.remove.bg/v1.0/removebg
BG_COLOR=#000000