Skip to content
akshit-python-programmerPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akyu Flow

The Windows launch site uses React and Vite. Each route has an HTML entry, so direct links and refreshes work on GitHub Pages, including under a repository subpath.

Address Purpose
/ The animated marketing page. It shows only what the Windows app does today; each chapter has a drawn, looping illustration. The Windows tile opens the Microsoft Store listing. /?from=app (where the app sends a signed-in account with no plan) adds a short welcome line.
/login/ Google sign-in. Returning members go to their account.
/landing/ Redirects to /, keeping any ?for= and #section, so old links still work.
/future/ What's next: features that are planned but not in the app yet (Mac, help with what's on screen, focus sounds). Move a feature from here to the landing page when it ships.
/pricing/ Akyu Pro at USD 9 monthly or USD 69 yearly, with a 7-day free trial for accounts that never had one. ?plan= (from the home page) goes straight to Dodo's checkout once signed in, but only when that checkout starts the free trial; a checkout that charges today always waits for a click.
/account/ The plan: trial days left and the first charge date, renewal or access end date, payment problems, and the billing portal.
/account/settings/ Google profile, billing history with invoice PDFs, sign out everywhere, and delete the account.
/checkout/return/ Rechecks the signed-in account while the signed Dodo event is processed.
/download/ The Microsoft Store listing, for everyone (Actions variable VITE_WINDOWS_DOWNLOAD_URL can override it).
/about/, /contact/, /privacy/, /terms/ Product information, support, privacy and subscription terms.

Run locally

Use Node 24. Run npm ci, then npm run dev. Run npm run build for TypeScript checks and the production build. To exercise an installed build locally, use npm run preview and its printed address.

Google sign-in

The site loads the pinned Firebase App and Auth browser modules from Google's CDN. The public Firebase project configuration in src/launch/config.ts comes from the desktop application. Google is the sole provider offered. In Firebase Authentication, enable Google and add the actual site hostname to Authorized domains. Add localhost separately when testing. Use the same Google account in Windows.

Billing and delivery

The API is the existing api Cloud Function in the Akyu application repository. Deploy the matching function changes alongside this website. The Firebase ID token identifies the buyer. A server-created Dodo checkout session carries that UID. The server checks Dodo's recurring amount, currency and interval before creating a session. Subscription access comes from the signed webhook and is shared with the desktop app. Query strings and return URLs cannot grant access.

  1. In Dodo, configure one USD 9 monthly recurring product and one USD 69 yearly recurring product in the intended mode. Check the renewal schedule and checkout display. The old annual test product was configured for USD 79. Use the correct product ID before testing. Existing founding members retain access.
  2. Set DODO_ENVIRONMENT to test_mode or live_mode in the corresponding Firebase Functions environment. Set DODO_PRODUCT_PRO_MONTHLY and DODO_PRODUCT_PRO_YEARLY. Live mode has no test-product fallback. Keep test transactions in a test project when rehearsing the production cutover. Adjust the public Firebase client configuration and function endpoint when building for that test project.
  3. Set the function’s existing Secret Manager entries DODO_PAYMENTS_API_KEY and DODO_PAYMENTS_WEBHOOK_KEY using credentials for that same mode. Configure Dodo's subscription lifecycle and payment succeeded/failed webhooks at https://us-central1-akyuflow-3dc04.cloudfunctions.net/api/billing/webhook/ for the production project. Existing assistant secrets are also needed by the shared function. Deploy from the desktop repo with firebase deploy --only functions:api.
  4. Set AKYU_WEBSITE_URL on the function to the canonical site URL, including any hosting subpath. The default is https://akyu.life. Successful and cancelled checkouts return to paths on that URL.
  5. The Microsoft Store listing is built in (src/launch/config.ts). VITE_WINDOWS_DOWNLOAD_URL in the Actions variables (or .env.local) can point somewhere else; anything that is not an https address is ignored. Production builds only accept live checkout sessions.
  6. In Dodo, retire the original deposit and lifetime links before opening sales. The website no longer distributes them. Archiving the provider products is a separate merchant action.
  7. In Dodo's dashboard, turn on Prevent Trial Misuse for the subscription products. The trial length is set by the function on each checkout session (never on the product), so the products themselves stay at no trial.
  8. Rehearse sign-in, both plans with and without the trial, cancelling during the trial, a delayed webhook, cancellation, account switching, and installing Windows using the same account. Check the account portal, support form and delivery link. Publish through the existing GitHub Pages workflow once the release is ready.

The website bundle contains only public Firebase identifiers and the download URL. Keep Dodo secrets, service account keys and the desktop OAuth client secret out of this repository.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages