This is the server-side code for The Routine App. Build with Express.js, Typescript, MongoDB & Supabase.
Deployed in Railway : https://task-app-backend-production-1432.up.railway.app/
Same project build with Hono.js on Bun Enviromnet & Used MongoDB
Same project build with Hono.js on Cloudflare-wrokers Enviromnet & Used D1 Sqlite Database
*** Decided to re-write the project Using Hono & Bun as I couldn't find any good free hosting site for express server
- Manage task with four categories: Daily(resets everynight), Weekly(resets on every Sunday night), Monthly (resets on last night of the month) & General that never resets.
- Take notes and manage them with different tags.
- Manage Profile with Authentication & Authorization.
- Express.js with TypeScript
- MongoDB NoSQL Database for task and note storage
- Supabase SQL Database for user profiles & Authentication
- node-cron for task scheduling
- JWT for cookie based session manage
| Method | Endpoint | Body | Protected |
|---|---|---|---|
| POST | /signup | { email, password, name, weekday } |
No |
| POST | /login | { email, password } |
No |
| POST | /reset | { email } |
No |
| GET | - |
Yes | |
| POST | /logout | - |
Yes |
| PUT | /update/:email | { name, weekday } |
Yes |
| DELETE | /delete/:email | - |
Yes |
| Method | Endpoint | Body | Protected |
|---|---|---|---|
| POST | / | { text, status, mail, type } |
Yes |
| GET | - |
Yes | |
| PUT | /:id | { text, status } |
Yes |
| DELETE | /:id | - |
Yes |
| Method | Endpoint | Body | Protected |
|---|---|---|---|
| POST | / | { text, mail } |
Yes |
| GET | - |
Yes | |
| PUT | /:id | { text } |
Yes |
| DELETE | /:id | - |
Yes |
- Clone the repository:
git clone https://github.com/SayedTahsin/Task-App-Backend.git cd Task-App-Backend - setup .env file
MONGO_URL= PORT=8000 SUPABASE_URL= SUPABASE_KEY= JWT_SECRET=
- Install dependecies & Run the Dev server
npm install & npm run dev