Code Monkey home page Code Monkey logo

lincut's Introduction

Lincut - FastAPI Link Shortener

Lincut is a simple yet powerful Link Shortener service built with FastAPI. It allows you to shorten long URLs into concise, user-friendly links.

Features

  • Shorten long URLs with ease.
  • Generate customizable and memorable short links.
  • View statistics on the usage of your links.
  • API for easy integration with other applications.

Table of Contents

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/lincut.git
  1. Install the required dependencies using pip:
pip install -r requirements.txt
  1. Configure your database settings and other options in the config.py file.

  2. Start the FastAPI application:

python -m lincut

Lincut will be available at http://localhost:8000.

Usage

Access the Lincut web interface at http://localhost:8000 or your deployed server. Enter the long URL you want to shorten. Optionally, customize the short link or leave it to be auto-generated. Click the "Shorten" button to generate the short link. You can also view statistics for each short link on the dashboard. API Documentation Lincut provides a simple and easy-to-use API for link shortening and statistics retrieval. The API documentation can be found at http://localhost:8000/docs, powered by Swagger UI. This documentation provides details on all available API endpoints and request/response formats.

Configuration

The config.py file allows you to configure various aspects of the Lincut service, including database settings, custom short link patterns, and more. Be sure to review and update this file to suit your specific requirements.

Contributing

We welcome contributions to Lincut! If you would like to contribute, please follow these guidelines:

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Make your changes and ensure the code is well-documented.
  • Run tests to make sure your changes haven't broken existing functionality.
  • Submit a pull request with a clear description of the changes and the problem they solve.

License

Lincut is open-source software released under the MIT License. You are free to use, modify, and distribute it as you see fit.

If you have any questions, feedback, or issues to report, please don't hesitate to open an issue on this GitHub repository.

lincut's People

Contributors

mohammadrezaamani avatar

Stargazers

 avatar  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.