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.
MasterOfTheTiger d17e18d1e7 Fix typo in link to translations 1 month ago
LICENSE Initial 1 month ago
README.md Fix typo in link to translations 1 month ago
download.php Add errors if the user didn't install modules 1 month ago
index.php Initial 1 month ago
random.php Fix code error 1 month ago
search.php Add errors if the user didn't install modules 1 month 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:

  • html
    • translations
      • af
      • ar

BibleSearch

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

python-heb12

The API uses python-heb12, an unreleased 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())