πΈ A Dart Frog API for the HeadlineHub app and dashboard
This repository contains the source code for the HeadlineHub API, a RESTful API built with Dart Frog, serving as the backend for both the HeadlineHub mobile app and the HeadlineHub web dashboard.
π§ Current Status
The HeadlineHub API is currently under development. The features listed below are planned and may not all be implemented in the current version.
π Features (Planned)
- π‘ News Source Management API:
- β Create, read, update, and delete news sources.
- βοΈ Configure source-specific settings (e.g., polling frequency, filtering rules, API keys).
- π©Ί Monitor source health and status.
- π₯ User Management API:
- π€ User registration, login, and logout endpoints.
- π Role-based access control (e.g., admin, editor, user).
- π Secure authentication and authorization using JWTs.
- π Headline Management API:
- β Create, read, update, and delete headlines.
- π Fetch headlines from integrated news sources (e.g., News API).
- π Schedule headline publication times.
- β Publish and unpublish headlines.
β οΈ Handle headline approval and rejection workflows.
- π App Analytics API:
- π Track user engagement metrics (e.g., active users, daily active users, session duration).
- π Track headline popularity metrics (e.g., most read headlines, top sources).
- π Provide aggregated usage statistics.
ποΈ Architecture
- π§Ή Clean Architecture: Adhering to clean architecture principles for separation of concerns.
- π Dependency Injection: Utilizing dependency injection for better testability and maintainability.
- πΎ Data Persistence: Utilizing a suitable database (e.g., PostgreSQL) for data storage and retrieval.
π οΈ Technologies
- π― Dart: The programming language for both frontend and backend development.
- πΈ Dart Frog: A modern and performant Dart framework for building backend applications.
- π PostgreSQL: The chosen database system for data persistence.
- π JWT: JSON Web Tokens for secure authentication and authorization.
This API is currently under development and may contain bugs or have limited functionality.
HeadlineHub API offers a PolyForm-Free-Trial license provided with the source code. Users can seamlessly upgrade to the robust PolyForm-Perimeter license with a single, one-time payment.
This evaluation license provides a 32-day period for comprehensive assessment and modification of the code's functionality. Continued utilization beyond this evaluation period necessitates the acquisition of a PolyForm-Perimeter license.
This license grants unlimited rights to utilize, modify, and distribute derivatives of the licensed source code, expressly prohibiting the distribution of the source code itself, whether for commercial gain or without charge.
No, a single license covers all three.
Should you have any further questions, please do not hesitate to inquire here."