GithubHelp home page GithubHelp logo

adhiraj-ranjan / url-shortener Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 111 KB

This is a simple but fast and powerful URL shortener web app built using Flas

License: MIT License

Python 39.82% JavaScript 26.68% CSS 22.60% HTML 10.89%
firebase flask url-short url-shortener

url-shortener's Introduction

URL Shortener Web App

This is a simple but fast and powerful URL shortener web app built using Flask (a Python web framework) and Firebase Realtime Database (a NoSQL cloud database). It allows users to create short URLs for long URLs, making it easier to share and manage links.

Ready to use instance

https://safeurl.itertools.repl.co

Features

  • Shorten long URLs: Users can enter a long URL and generate a short URL, which redirects to the original long URL. *. Custom short URLs: Users can customize the generated short URL to their preference.
  • Easy to use: The web app has a simple user interface that makes it easy for users to create, customize, and manage short URLs.

Technologies Used

  • Flask: A lightweight web framework for Python that makes it easy to build web applications quickly.
  • Firebase Realtime Database: A NoSQL cloud database that provides real-time synchronization and data storage for web and mobile applications.

Installation

  1. Clone the repository to your local machine.
  2. Install the required Python packages using pip: pip install -r requirements.txt
  3. Create a Firebase project and obtain the Firebase credentials (service account key) in JSON format.
  4. Replace the fields in utils/api.py with your base64 encoded Firebase JSON credentials and your Firebase realtime database url.
  5. Run the Flask application
  6. Open your web browser and go to http://localhost:5000 to access the web app.

Usage

  1. Enter a long URL in the input field on the home page.
  2. Click the "Shorten" button to generate a short URL.
  3. Optionally, you can customize the short URL by entering a custom alias.
  4. Click the Short Url to copy the short URL to the clipboard.
  5. Share the short URL with others, and it will redirect to the original long URL.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is open source and available under the MIT License.

Acknowledgements

This web app was developed using Flask and Firebase Realtime Database, and was inspired by the need of robust url shortener that enables any domain to be shorted.

Find Me on :

url-shortener's People

Contributors

adhiraj-ranjan avatar

Watchers

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