Skip to content

Creating Kairos - Our Own Bible Verse API #41

@eoSalinas

Description

@eoSalinas

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?

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions