This API service is facilitate user to download randomly generated image with custom text. Downloaded image is splited into two sections and each section contain randomly generated cats from external API.Application get image text,color and size as a user input for generate the image.Generated image will save in to project root folder.
Follow bellow steps on CLI before getting start
- Run
git clone [email protected]:YasiruDev/cat-service.git
for clone project - Run
cd cat-service
- Run
npm install
for install packages
User need to run specific command (npm script) with custom texts (command line arguments) for generate the image
- greeting
- who
- width
- height
- color
- size
Follow bellow script on CLI to run this Application
- Run
npm run cat-start -- {arg}
BASE_URL=https://cataas.com/
APP_PORT=3002
Sample script
npm run cat-start -- --greeting=Hi --who=there --width=400 --height=500 --color=Pink --size=100
Read the document Document for better understanding