Skip to content

An AI tool that you can use to get currency pair update via Whatsapp. Built with Twilio and Cloudflare Workers AI.

Notifications You must be signed in to change notification settings

DesmondSanctity/tyche-nomisma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tyche-nomisma

An AI tool that you can use to get currency pair update via Whatsapp. Built with Hono.js, Twilio(serverless functions & whatsapp) and Cloudflare Workers AI.

prerequisite to run project

  • Cloudflare account(with your terminal authenticated with wrangler CLI) Read more here
  • Cloudflare API KEY and ACCOUNT ID
  • Twilio account(with Twilio WhatsApp sandbox and phone number)
  • Tradermade API Key for live rates of currency pairs. See more here

step 1

  • set up a file called .dev.vars where all your environment variables will be added.
  • it will look like this:
TRADER_MADE_API = ""
CLOUDFLARE_API_KEY = ""
CLOUDFLARE_ACCOUNT_ID = ""
TWILIO_PHONE_NUMBER = ""

step 2 (run locally)

  • run the following commands to install dependencies and start the dev server respectively.
npm install
npm run dev

step 3 (deploy to prod)

  • you should store your secret to cloudflare workers for production use using the command below. where key is the secret name eg: CLOUDFLARE_API_KEY
npx wrangler secret put <KEY>
  • deploy the project to cloudflare using the authenticated wrangler CLI.
npm run deploy

About

An AI tool that you can use to get currency pair update via Whatsapp. Built with Twilio and Cloudflare Workers AI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published