A fully functional authentication + todo management API built with pure Node.js, no external frameworks (like Express).
Lightweight, fast, and easy to understand — perfect for learning or lightweight deployments.
- 👤 User registration & login
- Passwords are securely hashed using SHA-256
- Token-based authentication with simple token storage
- ✅ CRUD for Todos
- Each user can manage their own todos
- Supports add, update, delete, and get operations
- 🔒 Authentication Middleware
- Protects all
/todosroutes with token verification
- Protects all
- 🧾 Data stored in JSON files
- Simple and filesystem-based (no database setup required)
- 🌐 CORS enabled
- Ready for frontend integration (React, Vue, etc.)
- 🧩 Single server handles both Auth & Todo APIs
- Node.js (built-in http module)
- Crypto for password hashing
- Filesystem (fs/promises) for persistence
- No dependencies required
git clone https://github.com/abhijitht2002/react-mini-project.gitcd backend
node server.jscd frontend
npm run dev