GithubHelp home page GithubHelp logo

url-shortner's Introduction

Free URL-Shortner ✂️

Flask URL Shortener

This is a simple URL shortener web application built using Flask, SQLAlchemy, and WTForms. It allows users to register, log in, shorten URLs, and view their shortened URLs. The application also logs requests and sends them to a Discord webhook for monitoring.

Features

  • User registration and authentication
  • URL shortening
  • Logging of user requests
  • Integration with Discord webhook for monitoring

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3 installed on your local machine
  • Git installed on your local machine
  • A Discord account to create a webhook

Installation

To install and run this project locally, follow these steps:

  1. Clone the repository to your local machine:
    git clone https://github.com/M-thefl/URL-Shortner.git

  2. Navigate to the project directory:
    cd URL-Shortner

  3. Install the required Python packages:
    pip install -r requirements.txt

  4. Set up a Discord webhook and copy the URL.

  5. Create a config.json file in the project directory with the following content, replacing <webhook_url> with your Discord webhook URL:

{
    "app.register.info": "discord-webhook",
    "app.logger.info": "discord-webhook",
    "app.URLShortened.info": "discord-webhook"

}

Usage

Run the Flask application:
python app.py

Open your web browser and navigate to http://localhost:5000 to access the application.

Register an account or log in if you already have one.

Shorten URLs using the form provided.

View your shortened URLs and copy them for sharing.

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these steps:

Fork the repository. Create a new branch (git checkout -b feature/new-feature). Make your changes. Commit your changes (git commit -am 'Add new feature'). Push to the branch (git push origin feature/new-feature). Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

If you have any questions or suggestions, feel free to contact me at [email protected]

good luck (; 🌙
for life
fl

url-shortner's People

Contributors

m-thefl avatar

Stargazers

Shahrad Elahi avatar Constantine Zavezeon avatar  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.