The Heb12 API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BuildTools 34600cc4f7 Security changes, filter out a-z 3 days ago
LICENSE Initial 3 months ago
README.md Fix stuffs 1 month ago
download.php Filter out only a-z for security 3 days ago
index.php Filter out only a-z for security 3 days ago
random.php Filter out only a-z for security 3 days ago
search.php Filter out only a-z for security 3 days ago

README.md

Heb12 API

The Heb12 API is a handy web interface for some of the existing Heb12 tools.

Installation

First, start off by cloning the directory. If you don’t have Apache or an equivelant web server on your machine, then install it via these commands (Linux):

sudo apt install apache2 sudo apt install php

Then, navigate to /var/www/html and use these commands to then install the Heb12 API:

git clone https://github.com/Heb12/api.git

*Note: If you want everything to be on the main html directory, then simply add a . to the end of the command.

Everything should be up and running at localhost in your web browser.

Openbibles Translation Downloader

The file with every translation is located here: http://heb12api.duckdns.org/translations.tar.gz Create a folder in the main directory called translations. Extract the tar contents directly into the directory you just created. This is what it should look like:

  • translations
    • af
    • ar
  • html

BibleSearch

To install BibleSearch, run the following command in the www directory: git clone https://code.theres.life/Heb12/BibleSearch.git

python-heb12

The API uses python-heb12 Bible CLI app written in python. For the API to use this, a file called get_random.py must be created in the bref directory, with the contents:

import random_verse print(random_verse.randomVerseHuman())