Lincut is a simple yet powerful Link Shortener service built with FastAPI. It allows you to shorten long URLs into concise, user-friendly links.
- 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.
- Clone the repository:
git clone https://github.com/yourusername/lincut.git
- Install the required dependencies using pip:
pip install -r requirements.txt
-
Configure your database settings and other options in the
config.py
file. -
Start the FastAPI application:
python -m lincut
Lincut will be available at http://localhost:8000.
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.
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.
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.
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.