Loading repository data…
Loading repository data…
codingaslu / repository
Blog Lite is a simple Flask-based web app for blogging, featuring a REST API, Flask-SQLAlchemy, Flask-Login, and SQLite for data management. Perfect for those seeking a lightweight and easy-to-use platform with Python, Flask, and REST API capabilities. Check out the README for installation instructions.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This is a simple web application that allows users to create posts, follow other users, and interact with their posts by liking and commenting on them. The application also includes a REST API that allows external applications to access user engagement data.
The database used in this project is a SQLite database. The following tables were created:
The relationships between these tables are as follows:
This design allows for easy retrieval of information, such as all of a user's posts or all of the comments on a particular post. Additionally, it allows for easy tracking of likes and followers for each user.
The API was designed to retrieve information about a user's engagement on the platform, such as the number of posts, comments, likes, followers, and followed users. The API includes a single endpoint that takes a user ID as a parameter and returns a JSON object containing the engagement data.
The project is organized using the Model-View-Controller (MVC) pattern. In the application package, the views module contains the controllers for handling requests and rendering templates. The authentication module contains the controllers for handling user authentication and authorization. The models module contains the classes for the database tables. The templates folder contains the HTML templates for the views.
The application includes features such as user registration and login, posting, commenting, liking, and editing or deleting post. The user also has the ability to change their username and password. Additionally, users can delete their comments as well. The application also includes an API for retrieving user engagement data and a feature for following and unfollowing other users.
To run the application:
python -m venv .{{Foldername}}source {{Foldername}}/bin/activatepip install -r requirements.txtpython app.pyhttp://localhost:5000The API endpoint for retrieving user engagement data is /api/user/<user_id>/engagement. The endpoint takes a user ID as a parameter and returns a JSON object
This project is licensed under the terms of the MIT license. See the LICENSE file for details.