No description
- TypeScript 54.4%
- Vue 32.3%
- JavaScript 8.6%
- HTML 2.7%
- CSS 2%
| app | ||
| scripts | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| vite.config.js | ||
Bible Reader
Lightweight Web-App for bible reading
- Supports transliterated search text
- Favourites Bible list
- No backend, no PHP only static files
- Installable as offline App on Smarthones
Installation
Extract biblereader-v####.tgz and bibiles.tgz to root of Web-Server with folder structure:
\
index.html
manifest.json
...
lang\
langiages.json
bible\
bibles.json
en_KJV1769.json
de_LUT.json
Optional: update hostname for link sharing preview
Modify index.html and update og:url and og:image sections to fully support preview.
Optional: enable static compression support on server
If you own VPS server you should enable static compression support for faster download:
For Apache2 in file .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
# Check if the browser supports gzip
RewriteCond %{HTTP:Accept-Encoding} gzip
# Check if a .gz version of the file exists
RewriteCond %{REQUEST_FILENAME}.gz -s
# Serve the .gz file instead
RewriteRule ^(.+)$ $1.gz [L]
# Set the correct Content-Encoding header so the browser knows to unzip it
<FilesMatch "\.gz$">
ForceType text/plain
AddEncoding gzip .gz
</FilesMatch>
</IfModule>
For nginx add gzip_static on; in http section
Build
pnpm i
npx vite build
Add bible modules
# donload and convert module to dist/bibile/
# or to app/public/bibile/ if want to include bible in release file
node scripts/convert.ts "https://www.ph4.org/_dl.php?back=bbl&a=KJV1769_plus_&b=mybible&c" dist/bibile/
# if you have extracted MyBible file
node scripts/convert.ts tmp/KJV1769.SQLite3 dist/bibile/
# Create index file: bibles.json
node script/createindex.js dist/bibile