Skip to content

A starter boiler plate pack for developing apllications with FAST API

License

Notifications You must be signed in to change notification settings

GeniusGeeek/fastapi-starter-boiler-plate

Repository files navigation

License build status

fastapi-starter-boiler-plate

A starter boiler plate pack for developing apllications endpoints with FAST API. This Boilerplate has basics utililities needed for building REST APIs without much hassle and saves the user some development hassle.

Features includes:

  • Registration
  • User Login
  • CORS
  • Reset Password
  • Forgot Password
  • Authentication and Protected Routes (JWT)
  • Getting Autheticated User Details
  • Google Authentication
  • Email/Account Verification
  • Edit Account/Profile
  • Email Sending
  • Password hashing
  • User Account hashing
  • File Upload and Download

Installation

git clone https://github.com/GeniusGeeek/fastapi-starter-boiler-plate.git

A. REQUIMENTS

#Python 3.6 and greater

In project directory run the following two commands to create a virtual environment

pip3 install --upgrade pip 
python3 -m venv .env 
source .env/bin/activate
  1. Install fastapi and uvicorn server:
pip3 install "fastapi[all]"
  1. Install SQLAlchemy for ORM management
pip3 install SQLAlchemy
  1. Install Mysql connection for python
pip3 install mysql-connector-python
  1. Install Alembic for Database Migrations
pip3 install alembic
  1. Install other Requirements
pip3 install -r requirements.txt

B. Start Application

  1. Create database for application: eg. fastapi_starter_pack note: (do not create tables,running migrations will do that)

  2. Run database migrations

alembic revision --autogenerate -m "initial setup"
alembic upgrade head
  1. OPTIONAL: change DB url definations in database_conn.py and alembic.ini if needed according to your db name and settings

  2. Run Application

uvicorn main:app --reload 
  1. visit url in browser

    127.0.0.1:8000,
    127.0.0.1:8000/docs

About

A starter boiler plate pack for developing apllications with FAST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages