Skip to content

A lightweight Node.js backend for authentication and todo management — built without Express, using only core modules. Includes user login, registration, and token-based todo CRUD APIs with JSON file storage.

Notifications You must be signed in to change notification settings

abhijitht2002/react-mini-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Node.js Auth + Todo Backend

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.


✨ Features

  • 👤 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 /todos routes with token verification
  • 🧾 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

🛠️ Tech Stack

  • Node.js (built-in http module)
  • Crypto for password hashing
  • Filesystem (fs/promises) for persistence
  • No dependencies required

🚀 Getting Started

1. Clone the Repository

git clone https://github.com/abhijitht2002/react-mini-project.git

2. Run the Server

cd backend
node server.js

2. Run the App

cd frontend
npm run dev

About

A lightweight Node.js backend for authentication and todo management — built without Express, using only core modules. Includes user login, registration, and token-based todo CRUD APIs with JSON file storage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published