Coder Social home page Coder Social logo

fast-blog's Introduction

FastAPI Blog ๐Ÿ”ฅ

Screenshot

Introduction

Welcome to the FastAPI Blog ๐Ÿ”ฅ - a modern, fast (high-performance) blogging platform built with FastAPI and SQLAlchemy. This application provides a robust backend system for blog management, offering features like user authentication, blog creation, updating, deletion, and real-time blog updates.

Features

  • User Authentication: Secure login system to access token-based authentication.
  • Blog Management: Create, read, update, and delete (CRUD) functionalities for blog posts.
  • Real-Time Updates: Leverage FastAPI's capability for real-time communication.
  • Data Validation: Comprehensive validation for user inputs to maintain data integrity.
  • Scalable Architecture: Designed to be easily scalable for future enhancements.

Endpoints

The application exposes several endpoints:

  1. Token:

    • POST /token: User authentication to receive an access token.
  2. Users:

    • POST /users/: Create a new user account.
  3. Blogs:

    • GET /blogs/: Retrieve all blogs.
    • POST /blogs/: Create a new blog post.
    • GET /blogs/{id}: Get a specific blog post.
    • PUT /blogs/{id}: Update a specific blog post.
    • DELETE /blogs/{id}: Delete a specific blog post.
  4. Home:

    • GET /: A simple endpoint to confirm the API is operational.

How to Run

Open in GitHub Codespaces

  1. Prerequisites: Ensure you have Python and pip installed.
  2. Installation: Clone the repository and install dependencies.
    git clone https://github.com/concaption/fast-blog
    cd fast-blog
    make
  3. Run the Application: Start the FastAPI server.
    make run
  4. Access Swagger UI: Navigate to http://localhost:8000/docs to access the Swagger UI for API interaction.

Technology Stack

  • FastAPI: High-performance web framework for building APIs.
  • SQLAlchemy: SQL toolkit and ORM for database interactions.
  • SQLite: Database engine for development.
  • Uvicorn: ASGI server for running FastAPI.

Security

The application uses OAuth2 password flow for secure access. Passwords are hashed and tokens are used for secure API access.

Future Enhancements

  • Adding more interactive features with WebSockets.
  • Implementing advanced user roles and permissions.

Contributions

Contributions to the FastAPI Blog ๐Ÿ”ฅ are welcome! Please read the contribution guidelines before making a pull request.

License

MIT License

Contact

For any queries or feedback, please reach out to [email protected].

fast-blog's People

Contributors

concaption avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.