⚡️BoltURL [Python - Flask]

⚡️BoltURL [Python - Flask]

This Link Shortener web app showcases how Python can do anything. Using Python (Flask Framework) with PostgreSQL (Supabase).


Key Features:

-Link Shortening: -Allows users to shorten long URLs, creating more concise links.

-Python and Flask Usage: -Demonstrates the capabilities of Python, specifically utilizing the Flask framework. -Leverages Python for backend functionalities, showcasing its versatility in web development.

-User-Friendly Interface: -Provides a user-friendly interface for an intuitive user experience. -Incorporates templates and styling to enhance the visual appeal of the web app.

Installation and Local Execution:

Prerequisites:

Python 3.11

1. Clone this project.
git clone https://github.com/ivnimprv/bolturl-python.git
2.1 Navigate to the project directory (from your terminal IDE)
cd /your/folder/directory/bolturl-python
3. Install Dependencies
pip install -r requirements.txt
4. Create your own database (This is Planetscale [MYSQL] approach) and replace the following enviroment variables in order to get fully functionality of the app in local production.
domain_url = os.getenv("DOMAIN_URL", "http://localhost:5000")
hashids_salt = os.getenv("HASHIDS_SALT")
hashids = Hashids(salt=hashids_salt, min_length=4)  
connection = pymysql.connect(
        host=os.getenv("DATABASE_HOST"),
        user=os.getenv("DATABASE_USERNAME"),
        passwd=os.getenv("DATABASE_PASSWORD"),
        db=os.getenv("DATABASE"),
        ssl={"ssl_accept": "strict"}
    )
5. Run with the following command in your terminal IDE.
python3 index.py

Feedback & Support:

Your input matters, and I’m ready to help address any inquiries or feedback you may have. Your contributions are essential for refining the project and enhancing the overall user experience. Don’t hesitate to get in touch with me:

Feel free to share your insights, recommendations, or suggestions for continuous improvement. If you encounter any challenges or require assistance, please create a new GitHub issue. Be sure to provide a detailed description of your issue to facilitate prompt and precise support.

License:

For more information regarding this topic please read the following User Agreement Section.

Conclusion:

Achievements
  • Successful bypassed CORS restricted resources : Sometimes, when specific tasks are carried out between servers, the CORS mechanism restricts certain operations, it happened to me in this project when I was trying to redirect to shortened links.
Learnings
  • No Frontend Framework: In this project I learned that sometimes it is not necessary to depend on other front end frameworks.


Tags :
Share :

Related Projects



✨ AnalyzeMyDream [Astro.js - FastAPI]

✨ AnalyzeMyDream [Astro.js - FastAPI]

AnalyzeMyDream is an innovative platform built using Astro.js, offering AI-powered dream interpretation to help users gain deeper insights into their dreams. The platform integrates seamlessly with FastAPI, Flask, and advanced AI models, providing quick and detailed analyses. Subscription-based pla

Read More



🎬 Cinemathe [Vue.js - Django Rest Framework]

🎬 Cinemathe [Vue.js - Django Rest Framework]

A full-stack web app developed with Vue.js and Django Rest Framework, that simplifies entertainment choices. It provides seamless authentication for saving favorites, detailed technical info for movies and TV series with reviews included, and social media content sharing.

Read More



📈 E-commerce Data Analysis [Next.js - Python]

📈 E-commerce Data Analysis [Next.js - Python]

This implementation showcases and provides a comprehensive analysis of e-commerce data from two different Next.js projects. Using Python (Flask Framework) with GUnicorn and Azure Deployment.

Read More