Skip to content

binbjz/url_shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URL Shortener Service with FastAPI、MongoDB and Pytest

Build the image and run the container:

docker-compose up -d --build

Update the image and run unit test:

docker-compose exec web pytest .

Test out the following routes:

  1. http://localhost:8002/
  2. http://localhost:8002/docs
  3. http://localhost:8002/api/v1/shorten
  4. http://localhost:8002/api/v1/shorten/batch
  5. http://localhost:8002/api/v1/shorten/batch_conc
  6. http://localhost:8002/api/v1/{short_url}
  7. http://localhost:8002/api/v1/urls/delete/{short_url}
  8. http://localhost:8002/test-delete

About

URL Shortener

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published