npm run build
will build the webpack-bundle.js
which would be referenced by the index.html
npx webpack
on the misc/convert
folder will build the converter tool
rm tipitaka-app.exe; npx pkg -t win --output tipitaka-app.exe tipitaka-app.js
for 32 bit windows use win-x86
npx pkg -t macos --output tipitaka-app-mac tipitaka-app.js
For linux need to build it on a linux/ubuntu machine
npx pkg -t linux --output tipitaka-app-linux tipitaka-app.js
node tipitaka-app.js
These need to be placed in the same diretory of the exe created above
get a copy of the required pre built native modules - e.g. sqlite3
./node_modules/.bin/node-pre-gyp install --directory=./node_modules/sqlite3 --target_platform=linux
(win32 or darwin) add --target_arch=ia32
for 32 bit
downloaded to ./node_modules/sqlite3/lib/binding
/misc
/static
index.html
node_sqlite3.node
specific to the platformSame linux binary is run in the webserver https://tipitaka.app to serve requests from the online website.
git clone
this github repositorystatic/db/dict-all.db
(this fts db is not included in the repository since the big size)node tipitaka-app.js
and install any missing dependenciespm2 start tipitaka-app.js
(run in pm2 at tipitaka.app)/misc
/static
index.html
sql-query.mjs
disable node importsconstants.js
change isAndroidAttribution-ShareAlike CC BY-SA https://creativecommons.org/licenses/by-sa/4.0/ You must give appropriate credit, provide a link to the license, and indicate if changes were made.
The VRI texts in the static/texts directory are copyrighted to VRI (https://www.vridhamma.org/).