Skip to content

Bible-Translation-Tools/WordAnalysisTool

Repository files navigation

This is WordAnalysisTool targeting Android, Web, Desktop.

Secrets

The app uses cloudflare as an API. Run the following command to add a secret and enter corresponding secret value.

npx wrangler secret put <SECRET_NAME>

Here are the secrets that should be created:

JWT_SECRET_KEY - Secret key to sign JWT access tokens
WAT_ADMINS - Comma separated list of admin users
CLOUDFLARE_ID - Cloudflare account ID
DATABASE_URL - Database connection url (currently Supabase)

OPENAI_API_KEY - OpenAI API key
QWEN_API_KEY - Alibaba API key
CLAUDEAI_API_KEY - Anthropic API key
MISTRAL_API_KEY - Mistral AI API key

WACS client configuration obtain here:

WACS_CLIENT - WACS Client ID
WACS_SECRET - WACS Client Secret
WACS_CALLBACK - WACS Redirect Uri

Configuration

To build with Api and WACS client configuration, first run:

./gradlew generateBuildConfig -PwacsClientId="<WACS_CLIENT_ID>" -PwatBaseUrl="<WAT_BASE_URL>"

Database

Create schema on remote database by running:

npm run db:migrate

To add new migrations, edit api/src/db/schema.ts and run:

npm run db:generate

Then use migrate command again or run migrations manually via SQL.

Build

To build web client:

  1. Run ./gradlew buildWebDistribution
  2. Deploy api with client cd api && npm run deploy

To build desktop clients (on a corresponding OS only) run:

./gradlew packageDmg - for Mac
./gradlew packageMsi - for Windows
./gradlew packageDeb - for Linux

To build android client run:

./gradlew assembleRelease or use Android Studio tools

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published