Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Windows Tipps & SecurityNighthawk M7 Pro im Test: Flexibler, aber teurer 5G-Router(21.09.2026 um 10:30 Uhr)
Sichere ProgrammierungNeue Gmail-Funktion: So sparst du jetzt Zeit bei Einmalcodes(21.09.2026 um 10:00 Uhr)
Sichere ProgrammierungYour GIF exporter is fine — the container is the problem(21.09.2026 um 10:01 Uhr)
Sichere ProgrammierungCSS, Motion, or GSAP? I Choose by Who Owns the Animation(21.09.2026 um 10:12 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Creating a Flask App: My issues as a beginner and how I learned to fix them.

Hi everyone, Eworitse Egbejule here. This is my first blog post and I want to share my experience with creating a flask app; the issues I had while making it and how I fixed them. Flask is a lightweight and flexible microframework used…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Hi everyone, Eworitse Egbejule here. This is my first blog post and I want to share my experience with creating a flask app; the issues I had while making it and how I fixed them.



Flask is a lightweight and flexible microframework used for building web apps in Python with minimal setup. Here's a sample code of a simple flask web app:



Sample Flask web app



My app is called Microblog and it's a simple blog flask app with it's frontend self written in HTML and CSS.



I followed these steps to build my app:






Step 1: Design the Frontend




  • I started by creating the HTML and CSS code for a simple blog interface.

  • The blog lets users record notes in the form of a diary.

  • The entries are then presented back to the user in a clean, user-friendly format.






Step 2: Develop the Backend




  • I followed a tutorial to build the Flask backend. Flask is perfect for this due to its simplicity and flexibility.
    *This stage involved setting up routes, handling user inputs, and managing the data.






Step 3: Handle Backend Hosting Issues




  • The main challenge came with hosting the site. Initially, I attempted to host it on Render.

  • I connected it to my GitHub repo here, but encountered multiple errors.

  • The errors were frustrating, and a friend suggested switching to Vercel. Even on Vercel, I faced troubleshooting issues. Here are a few examples of my errors:



Render Errors




  • Here's another one:



More Render errors






Steps I took to fix my deployment issues:




  • Check app.py File:
    Ensure your Flask app is correctly instantiated as app.




    from flask import Flask

app = Flask(__name__)

if __name__ == '__main__':
app.run()







  • Update the gunicorn Command:
    Modify your start command in your deployment settings to:




    gunicorn app:app







  • Ensure Correct Directory Structure:
    Make sure that app.py is in the root directory of your project.



Create vercel.json Configuration File:




    {
"version": 2,
"builds": [
{
"src": "app.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "app.py"
}
]
}







  • Push to GitHub and Link to Vercel:
    Ensure your code is pushed to GitHub. Link your GitHub repository to Vercel for automatic deployment.






Deployment: Making It Live



I deployed the application on Vercel and pushing my code to GitHub, followed by linking the repository to Vercel for automatic deployment.



Vercel






HNG 11 Backend Internship



The process of building this microblog application strengthened my interest and love for backend development. It taught me valuable lessons in routing, CRUD operations, and deployment. Now, I'm excited to bring this passion and these skills to the HNG Internship.



The HNG Internship provides a great opportunity to learn from experienced professionals, work on practical projects, and connect with other programmers. I'm very much interested in the intensive learning and opportunities that are provided by the internship. In case you're interested and want to find out more information about the program, please checkout HNG Internship and HNG Hire.






Conclusion



This project was a significant milestone in my backend development journey. I'm really looking forward to the challenges and learning opportunities that the HNG Internship will bring. If you're also an aspiring developer like me, I highly recommend checking out the HNG Internship to take your skills to the next level.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Creating a Flask App: My issues as a beginner and how I learned to fix them.

Thematisch verwandte Begriffe: Creating, Flask, issues, beginner · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94030 | A security vulnerability has been detected in SerenityOS up to 3d83e4509…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick