Sign inSign up

csociety/simply-url

By csociety

•Updated over 4 years ago

A python Restful application designed to shorten the URLs.

Image
0

968

csociety/simply-url repository overview

⁠Simply URL

A python Restful application designed to shorten the URLs.

⁠How to run

  • Execute the command below to create the requirement file url_mapping.json
touch url_mapping.json
echo "{}" > url_mapping.json
  • Create and run the container with simply-url image
docker run -d -p 5002:5000 --name=simply-url \
csociety/simply-url -v $PWD/url_mapping.json:/code/url_mapping.json \
simply-url
  • Once the simply-url is up and running use the below URL to access the Swagger UI

Due to CORS issue Swagger will give error while using the /s/{shortenedId} API, please directly access the URL using a browser.

http://0.0.0.0:5001/swagger-ui
  • To run the unit tests use the command below
docker exec -it simply-url python -m pytest

Tag summary

Content type

Image

Digest

Size

58.3 MB

Last updated

over 4 years ago

docker pull csociety/simply-url