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
- 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
- create and execute D1 database: After creating db, you will get some valiable, copy paste these variable in wrangler.toml file then apply. (check this repo for understanding D1)
$ 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
- 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