This webapp is built with Vue and Vuetify. It is designed to run in either
- Website/SPA on https://tipitaka.lk
- Offline Android app
- Offline Desktop app (Windows/Mac/Linux)
npm run build
and deploydist
directory to webserver- export NODE_SERVER_MODE=production and run PM2 as below
- use PM2 to run
server/server.js
astipitaka-lk-server
on the webserver - use nginx
proxy_pass
directive to pass requests from tipitaka.lk tolocalhost:8400
node server/server.js
npm run serve
- copy the changed text files in the
dist
dir to prod server - run
fts-populate.js
and copy thefts.db
to server - PM2 restart the
tipitaka-lk-server
to use the new db file
- Uncomment the public path in
vue.config.js
and build - Place the built files in
app/src/main/assets
directory in an Android webview app - Place the sqlite db files from the
server
folder (dict.db and fts.db) in thedbassets/src/main/assets
- Follow the instructions on
server/server.js
to build a binary usingpkg
. - Make a zip file containing the above binary,
node_sqlite3.node
,dist
andserver
folders - The above steps are now included in the
dev/create-releases.ps1
PowerShell script (just run it)
Please check the LICENSE file if you wish to extract any content from the website for redistribution.