This is a full-stack News Application built with React for the frontend and Node.js + Express + MongoDB for the backend.
Users can register, log in, post news articles, edit or delete their own posts, and browse news posted by others.
News-App/
│
├── app/ # Frontend (React)
├── server/ # Backend (Node.js, Express)
└── README.md # Project documentation
- User-friendly UI for browsing news articles
- User authentication (login & signup)
- Create, edit, and delete news articles
- Protected routes for authenticated users
- API integration with backend
- RESTful APIs for news and users
- JWT-based authentication & authorization
- MongoDB database integration
- CRUD operations for news articles
- Centralized error handling
🔗 Frontend Live URL:
https://newsapp-ashishmisal.vercel.app
- React
- Axios
- React Router DOM
- Node.js
- Express.js
- MongoDB
- JSON Web Token (JWT)
- Axios
git clone https://github.com/ashishmisal23/News-App.git
cd News-Appcd app
npm installCreate a .env file inside the app folder:
REACT_APP_API_URL=http://localhost:5000
npm startFrontend will be available at: 👉 http://localhost:3000
cd server
npm installCreate a .env file inside the server folder:
PORT=5000
MONGO_URL=your-mongodb-connection-string
JWT_SECRET=your-jwt-secret
npm startBackend API will be available at: 👉 http://localhost:5000
app/
│
├── public/
│ └── index.html
│
├── src/
│ ├── components/
│ ├── pages/
│ ├── App.js
│ └── index.js
server/
│
├── models/ # MongoDB schemas
├── routes/ # API routes
├── dbConnect.js # Database connection
└── server.js # Express server
Contributions are welcome!
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License.
Ashish Misal
- GitHub: https://github.com/ashishmisal23
⭐ If you like this project, don’t forget to star the repository!