Coder Social home page Coder Social logo

url_shortener's Introduction

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

url_shortener's People

Contributors

binbjz avatar

Stargazers

 avatar  avatar  avatar Yigehaoren8848 avatar Kevins avatar su7-gaga avatar  avatar F-x avatar  avatar MijazzChan avatar 爱可可-爱生活 avatar Jian avatar DiscoverTruth avatar chiefass avatar Meta Luo avatar DanL0 avatar  avatar  avatar Jinge Li avatar whynot avatar  avatar  avatar  avatar  avatar 王兴月 avatar HelloWorld avatar @hello-rocky hello-rocky avatar  avatar Amen8 avatar Z_HAHA avatar Liu Zheng avatar  avatar Liu Zheng avatar LingYuZhao avatar long2x avatar  avatar  avatar  avatar Dao avatar Pan_ avatar  avatar  avatar  avatar Beacas avatar HelloBoy! avatar  avatar  avatar  avatar TwinDagger avatar Yuanchen Wu avatar Daemon avatar rcodeeval avatar Haopeng Wang avatar Li Jiajun avatar jiaxiangc avatar Shatong Zhu avatar maozi avatar Nanomoa avatar Null avatar Howie avatar  avatar  avatar  avatar Moon avatar  avatar Eric avatar  avatar Lincan Li (Kelsey) avatar Yonghao Zhao avatar liuziting avatar codeflying0817 avatar xiansongq avatar Oscaner.Aliyun avatar SmileSky avatar ruojian li avatar  avatar in1t avatar 曾经的你 avatar yuwangi avatar Lujia Jin avatar  avatar test_init avatar  avatar Lorenz Liu avatar test_push avatar wozuidiao avatar  avatar vanker-x avatar  avatar  avatar  avatar 8xmx8 avatar  avatar  avatar rookie-ljh avatar huan.wang avatar  avatar CYJiang avatar dagger avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.