Git Product home page Git Product logo

shurl's Introduction

Shurl - URL shortener

Functional Requirements

  1. Given a URL, the service generates a shorter and unique alias of it.
  2. When users access a short link, the service redirects them to the original link.
  3. Users can optionally pick a custom short link for their URL.
  4. Users can view stats about token-URL redirections.

How to run

Simply run uvicorn main:app --reload

Testing

To run unit tests and integration API tests via pytest run pytest tests

Load testing

To run load tests via locust run application, then run locust -f locustfile.py, go to localhost:8089 and specify parameters of the test:

  • number of users
  • spawn rate
  • API host

You can observe and download these metrics:

  • RPS
  • Min/Max/Median response time
  • Request count

Load testing metrics

Documentation

You can find Swagger documentation at the /docs endpoint

shurl's People

Contributors

pacifikus avatar

Watchers

 avatar

shurl's Issues

Замечания

У вас уже есть pyproject, зачем еще один файл с зависимостями (который .txt) ?
Задание не выполнено

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.