A full-stack News Portal web application built using the MERN stack (MongoDB, Express, React, Node.js). Users can register, login, and interact with news content.
https://news-portal-etom.onrender.com/
🔗
- 🔐 User Authentication (Register & Login)
- 🪪 JWT-based Authorization
- 📰 News API (Create / Read)
- 🌐 RESTful API integration
- ⚡ Fast frontend with React + Vite
- ☁️ Deployed on Render
- React.js (Vite)
- Axios
- CSS
- Node.js
- Express.js
- MongoDB Atlas
- Mongoose
news-portal/
│
├── client/ # React frontend
│ └── dist/ # Production build
│
├── server/ # Backend (Node + Express)
│ ├── routes/
│ ├── controllers/
│ └── server.js
│
└── README.md
cd server
npm install
npm run devcd client
npm install
npm run devCreate a .env file inside server/:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_secret_key
PORT=5000
- POST
/api/auth/register - POST
/api/auth/login - GET
/api/auth/profile
- GET
/api/news - POST
/api/news
Use Postman to test API:
POST https://module-27-ostad.onrender.com/api/auth/register
Faruk Badsha
If you like this project, give it a ⭐ on GitHub!