https://github.com/tkdnbb/bookofben-api
The API service for the book of Jachanan Ben Kathryn.
https://github.com/tkdnbb/bookofben-api
Last synced: 10 months ago
JSON representation
The API service for the book of Jachanan Ben Kathryn.
- Host: GitHub
- URL: https://github.com/tkdnbb/bookofben-api
- Owner: tkdnbb
- License: mit
- Created: 2025-05-31T03:02:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-08T07:36:06.000Z (about 1 year ago)
- Last Synced: 2025-06-08T08:25:41.622Z (about 1 year ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bookofben-api
The API service for the book of Jachanan Ben Kathryn.
## docker commands
docker run -d \
--name bookofben-mongo \
-p 27017:27017 \
-e MONGO_INITDB_ROOT_USERNAME=root \
-e MONGO_INITDB_ROOT_PASSWORD=example \
mongo:latest
docker exec -it bookofben-mongo mongosh -u root -p example
## MongoDB shell commands
use bible_api
db.books.find()
## .env
Please create a .env file.
```
MONGO_CONNECTION=mongodb+srv://example
```
## API testing
curl -XGET http://localhost:8080/john%203:16
curl -XGET http://localhost:8080/the%20book%20of%20jachanan%20ben%20kathryn%201
curl -XGET "http://localhost:8080/api/search?q=the%20LORD%20would"