FastAPI project template (jWT, MariaDB)

📰 Dev.to · VDev

Create a FastAPI project with JWT authentication and MariaDB database using a pre-built template

intermediate Published 23 Apr 2021
Action Steps
  1. Clone the FastAPI project template from GitHub using 'git clone https://github.com/phalconvietnam/FastAPI-project-template.git'
  2. Install required dependencies with 'pip install -r requirements.txt'
  3. Configure JWT authentication by setting 'JWT_SECRET_KEY' and 'JWT_ALGORITHM' environment variables
  4. Set up MariaDB database connection using 'SQLALCHEMY_DATABASE_URL' environment variable
  5. Run the application with 'uvicorn main:app --host 0.0.0.0 --port 8000'
Who Needs to Know This

Backend developers and DevOps engineers can use this template to quickly set up a secure FastAPI project with database integration

Key Insight

💡 Use a pre-built template to save time and ensure security best practices for your FastAPI project

Share This
🚀 Bootstrap your FastAPI project with JWT auth and MariaDB database using this template! https://github.com/phalconvietnam/FastAPI-project-template

Key Takeaways

Create a FastAPI project with JWT authentication and MariaDB database using a pre-built template

Full Article

Design sample refer to project fastapi https://github.com/phalconvietnam/FastAPI-project-template
Read full article → ← Back to Reads