Skip to content

Server-side code for Routine App. Build with Hono, Deployed on Cloudflare-Workers.

Notifications You must be signed in to change notification settings

SayedTahsin/Routine-Hono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Server-side code for Routine App. Build with Hono, Deployed on Cloudflare-Workers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published