Giter VIP home page Giter VIP logo

urlshortener's Introduction

URL Shorten API

This is a project responsible for shortening URLs.

Requirements

  • Python (~3.10) + FastAPI ๐Ÿ
  • Docker + docker-compose ๐Ÿ‹

Architectural Decision

A report is provided at ./docs directory along with a load test result.

Getting Started

  1. Clone the repo

    git clone [email protected]:victormartinez/urlshorten.git
    
  2. Create a .env file from env.sample

  3. Install the dependencies

    cd urlshorten/
    poetry install
    
  4. Split the terminal and execute the commands below:

    # first terminal
    make up
    
    # second terminal
    make run
    

Load Test

Load test is performed using k6.io and the setup script is available at ./tests/load/script.js.

  1. Build the container images

    make load-test-build
    
  2. Start containers

    make load-test-up
    
  3. Run the load test (requires k6.io)

    make load-test
    

Main Commands

Makefile makes available most used commands.

make help
make format
make coverage
make unit-test
make integration-test

urlshortener's People

Contributors

victormartinez avatar

Watchers

 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.