Skip to content

YasiruDev/cat-as-a-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cat Card Application

About the project

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.

Getting started

Follow bellow steps on CLI before getting start

  1. Run git clone [email protected]:YasiruDev/cat-service.git for clone project
  2. Run cd cat-service
  3. Run npm install for install packages

Generate cats image

User need to run specific command (npm script) with custom texts (command line arguments) for generate the image

Custom text parameters
  • greeting
  • who
  • width
  • height
  • color
  • size

Run Application

Follow bellow script on CLI to run this Application

  1. Run npm run cat-start -- {arg}

.env configuration

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published