Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.83 KB

README.md

File metadata and controls

69 lines (51 loc) · 1.83 KB

Routine-Hono

Build with Hono.js in Cloudflare-workers environment. Deployed on Cloudflare-workers. Used D1 Sqlite Database, Bun as Package Manager, and Cron type trigger events for scheduling tasks.

Front-end Deployed on Vercel
Front-end Repo

Feature

  • Firebase user authentication
  • JWT token based session manange
  • Add Task with Different Pre-defined(weekdays) and custom categories.
  • Edit/Delete tasks
  • Resets Tasks Based on Schedule
  • Calculate Consistency Percentage

Same project build with Hono.js on Bun Enviromnet & Used MongoDb
Same project build with Express.js & used MongoDb and Supabase Database

Run locally:

  • install bun if you want to use bun as package manager (recommended but optional)
  • install wrangler for D1 database, cloudflare-workers runtime and deploy
$ bun add -g wrangler
  • clone repo
$ [email protected]:SayedTahsin/Routine-Hono.git
$ wrangler d1 create <db-name>
$ wrangler d1 execute <db-name> --local --file=./schema.sql
  • need to set ENV='development' in wrangler.toml to avoid cors error in dev mode

  • Run

$ bun install
$ bun run dev
  • Deploy
$ bun run deploy

TODO's

  • write Task API
  • write Note API
  • write User API
  • write Auth Route
  • Auth Middleware
  • cron triggers
  • deploy on Cloudflare-workers
  • fix CORS error
  • fix Cookies Issue