Overview
This is a Node.js backend API for a contact management system with user authentication functionality. The API allows users to register, log in, and manage their contacts through RESTful endpoints.
Technical Stack
Runtime: Node.js
Framework: Express.js
Database: MongoDB (connection setup included)
Authentication: JWT (JSON Web Tokens)
Environment Management: dotenv
Package Management: npm (package.json and package-lock.json)
Key Features
Authentication System
User registration and login endpoints
JWT-based authentication middleware
Protected routes for authenticated users only
Error handling for authentication failures
Contact Management
CRUD operations for contacts
All contact routes protected by authentication
API versioning (v1) for future compatibility