Node.js based Bible API GraphQL web service
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
db
lib
schema
seed
.babelrc
.env.example
.gitignore
Dockerfile
LICENSE
README.md
docker-compose.yml
package-lock.json
package.json

README.md

Bible API GraphQL - WIP

Known Vulnerabilities

Install

npm install

Run

npm start

Develop

npm run dev

Use

Request http://localhost:3333/graphql

{
  passage(reference: "Gen 1:1") {
    verse
  }
}

Response

{
  "data": {
    "passage": {
      "verse": "In the beginning God created the heaven and the earth."
    }
  }
}

Database

Start MongoDB

mongod --dbpath ./data/db

Import data

mongoimport --db bibleapi --collection bible --type json --file /seed/asv.json