- Database Connection Using SQLAlchemy
- FastAPI Server
- Basic CRUD for Posts
- Python 3.7+
- Pip
- Other listed in requirements.txt
- Clone the repo using
git clone https://github.com/mayankkumar2/fastapi-session
- Create a Virtual Environment using
pip install virtualenv
virtualenv env
- Activate the virtualenv
env\Scripts\activate # for windows
source env/bin/activate # for linux and mac
- Install dependencies
pip install -r requirements.txt
- Setting up environment variables
Key | Value |
---|---|
DATABASE_URL | postgresql://user:password@host:port/db |
- To run the project
uvicorn main:app
Md Hishaam Akhtar | Mayank Kumar |
Made with ❤️ by DSC VIT