FastAPI Social Media API A robust RESTful API built with FastAPI for a social media application that allows users to create accounts, publish posts, and vote on content. Features
User Authentication: Secure JWT-based authentication system Posts Management: Create, read, update, and delete posts Voting System: Users can vote on posts they like Database Integration: PostgreSQL database with SQLAlchemy ORM Schema Validation: Request and response validation with Pydantic API Documentation: Automatic interactive API documentation Environment Configuration: Environment-based configuration management Database Migrations: Database versioning with Alembic
Tech Stack
FastAPI: High-performance web framework for building APIs SQLAlchemy: SQL toolkit and ORM Pydantic: Data validation and settings management PostgreSQL: Relational database JWT: JSON Web Tokens for secure authentication Alembic: Database migration tool Uvicorn: ASGI server implementation Passlib & Bcrypt: Password hashing