Skip to content

anuja-rahul/MODDE-demo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python FAST API POSTMAN PYDANTIC POSTGRES SQLALCHEMY JWT

MODDE demo api

GitHub   GitHub   GitHub   Contributors   Watchers  

Prerequisites

Getting Started

  1. Clone this repository

    git clone https://github.com/anuja-rahul/python-fastAPI.git
  2. Create a Virtual environment

    python -m venv venv
  3. Activate the venv

    activate venv
  4. Install the packages

    pip install -r requirements.txt
  5. Setting up the env variables: required: .env

    ex: for dev env

    SECRET_KEY="Your Secret Key"
    ALGORITHM="HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES="60"
    HOST="localhost"
    DBNAME="Your DB name"
    PORT="8000"
    USER="Your Username"
    PASSWORD="Your password"
    • Note: If you have openssl, to generate a SECRET_KEY you can run :

      openssl rand -hex 32
  6. Start the uvicorn server

    uvicorn app.main:app --reload

Documentation

  • After starting the uvicorn server visit

    for Swagger UI:

    http://localhost:8000/docs

    or for Redoc:

    http://localhost:8000/redoc

     

Readme Card

Releases

No releases published

Packages

No packages published