-
Notifications
You must be signed in to change notification settings - Fork 9
Open
5 / 65 of 6 issues completedLabels
enhancementNew feature or requestNew feature or request
Description
Problem
Currently, the API we use to fetch Bible verses is unstable, which causes the placeholder to repeatedly display the same verse. To permanently fix this issue, I suggest that we develop our own API, ensuring greater reliability and control over the data.
Proposed Solution
The idea is to create a relatively simple project with just one endpoint, which will be sufficient for our initial needs.
- Main Endpoint: We only need a single endpoint that randomly returns a pre-selected verse.
- Authentication: We will implement an authentication mechanism to ensure that only our front-end has access to the API for now.
- Database: Since we have just over 365 verses selected by the community, SQLite should be enough to meet our needs without requiring a more robust database like PostgreSQL.
- Scalability: Despite its initial simplicity, we can structure the codebase with a future database migration in mind. To facilitate this, it would be beneficial to adopt principles like dependency inversion and dependency injection, making the project more flexible and modular.
This approach will not only solve our current problem but also open the door for new features in the future. What do you think about this idea?
meiazero
Sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request