Bible API RESTful web service developed with Node.js
{
verses: [
{
book: 1,
chapter: 1,
verse: 1,
text: "In the beginning God created the heaven and the earth.",
tran: "KJV",
bookRef: "Gen",
bookName: "Genesis"
}
],
text: "In the beginning God created the heaven and the earth."
}
- KJV
- ASV
{
verses: [
{
book: 1,
chapter: 1,
verse: 1,
text: "In the beginning God created the heaven and the earth.",
tran: "ASV",
bookRef: "Gen",
bookName: "Genesis"
}
],
text: "In the beginning God created the heaven and the earth."
}
{
verses: [
{
book: 1,
chapter: 1,
verse: 1,
text: "In the beginning God created the heaven and the earth.",
tran: "KJV",
bookRef: "Gen",
bookName: "Genesis"
},
{
book: 1,
chapter: 1,
verse: 1,
text: "In the beginning God created the heavens and the earth.",
tran: "ASV",
bookRef: "Gen",
bookName: "Genesis"
}
]
}
Import JSON files from this repo: https://github.com/dev4christ/usfm2json/tree/master/json
mongoimport --db bibleapi --collection bible --type json --file kjv.json
mongoimport --db bibleapi --collection bible --type json --file asv.json
npm install
gulp
mocha
- http://bibleapi.ws/Gen1
- http://bibleapi.ws/Gen1:1