eoSalinas / eoSalinas/verse

Creating Kairos - Our Own Bible Verse API

Open
#41 0 comments 1 reaction 1 assignee Claimed by @eoSalinas View on GitHub
enhancement
Dominant language
TypeScript
Stars
41
Forks
9
PR merge metrics
No merged PRs in 30d

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.