A secure and scalable backend API built with Node.js, MongoDB, JWT, Firebase Authentication, and CORS for a modern social article platform.
- π User authentication with Firebase and JWT token verification
- π‘οΈ Secure RESTful API with protected routes
- π CORS enabled for frontend-backend communication
- πΎ MongoDB database for storing users, articles,
- π Integration with Firebase Auth for seamless login/signup
- βοΈ Environment-based configuration for security and flexibility
- Node.js - Server runtime environment
- Express.js - Web framework for building APIs
- MongoDB - NoSQL database
- JWT (jsonwebtoken) - JSON Web Tokens for user session and authorization
- Firebase Admin SDK - To verify Firebase ID tokens and manage users
- CORS - Cross-Origin Resource Sharing for frontend integration
- dotenv - Environment variables management
- Node.js (v14 or above recommended)
- MongoDB (Atlas or local)
- Firebase project with service account credentials
- npm or yarn
- Clone the repo
git clone https://github.com/yourusername/your-repo.git cd your-repo