- Application uses Docker Compose. User must have Docker Compose installed.
- Instruction can be found here: https://docs.docker.com/compose/install/
-
Download Zip file and extract or clone repo
-
Navigate to the directory that was extracted or cloned in a terminal
-
Run
# docker-compose up
. This will start the API running atlocalhost:9888
- Open a web browser window and navigate to
localhost:9888/
. A response should be displayed.
- Open a web browser window and navigate to
-
The API can be interacted with using POST and GET commands from the terminal
curl --request POST --data '{"long_url": "https://www.cyclingnews.com"}' http://localhost:9888/api/v1/shorten/
GET http://localhost:9888/aKC66gdK