You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Flask developers, API architects, and Python tinkerers! π
After seeing many developers reinvent the wheel every time they start a Flask backend project, I built flasksecforge β a ready-to-deploy, secure REST API boilerplate that blends best practices, modularity, and real-world readiness.
Whether you're building a full-stack app, prototyping an API, or teaching others how to work with Flask, this boilerplate gets you started with a clean, extensible structure π
π Core Features
π JWT Authentication (Login, Register, Protected Routes)
π Looking for Contributors & Feedback!
This project is open-source and built with teaching, scaling, and security in mind.
I'm looking for feedback, contributors, ideas, and use cases you want me to integrate next (Docker? OAuth2? Role-based access?).
βοΈ Star the repo, fork it, or drop a PR β letβs build Flask apps better, together!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Flask developers, API architects, and Python tinkerers! π
After seeing many developers reinvent the wheel every time they start a Flask backend project, I built flasksecforge β a ready-to-deploy, secure REST API boilerplate that blends best practices, modularity, and real-world readiness.
Whether you're building a full-stack app, prototyping an API, or teaching others how to work with Flask, this boilerplate gets you started with a clean, extensible structure π
π Core Features
π JWT Authentication (Login, Register, Protected Routes)
π§© Modular Blueprints (Auth, Users, Items)
π SQLAlchemy + Marshmallow (ORM + Serialization)
π CRUD Sample Endpoints (Create, Read, Update, Delete)
π οΈ App Factory Pattern (Per-environment config support)
π§ͺ Health Check Endpoint (/health)
π DB Migrations via Flask-Migrate
βοΈ Gunicorn-ready for Production
π Structured Logging (access + error logs)
βοΈ Tech Stack
Python 3.7+
Flask
Flask-JWT-Extended
SQLAlchemy & Marshmallow
Gunicorn for production
CORS, Migrate, and more
π¦ Quick Start
Install dependencies
pip install -r requirements.txt
Set up DB and migrate
export FLASK_ENV=development
flask db init
flask db migrate
flask db upgrade
Run locally
python run.py
Or deploy with Gunicorn
gunicorn -c gunicorn.conf.py run:app
π§° Endpoints Overview
POST /auth/register β Register a new user
POST /auth/login β Get a JWT access token
GET /users/profile β View authenticated user profile (JWT protected)
GET /items/ β List all items
POST /items/ β Create new item (JWT protected)
PUT /items/ β Update an item (JWT protected)
DELETE /items/ β Delete an item (JWT protected)
GET /health β Simple status check
π Links
π» GitHub: https://github.com/reprompts/flasksecforge
π§βπΌ LinkedIn Group: https://www.linkedin.com/groups/14631875/
π¦ Twitter/X: @RepromptsQuest
βοΈ Dev.to: https://dev.to/repromptsquest
π Looking for Contributors & Feedback!
This project is open-source and built with teaching, scaling, and security in mind.
I'm looking for feedback, contributors, ideas, and use cases you want me to integrate next (Docker? OAuth2? Role-based access?).
βοΈ Star the repo, fork it, or drop a PR β letβs build Flask apps better, together!
Beta Was this translation helpful? Give feedback.
All reactions