Welcome to our API-based news application! This project provides a platform for users to access the latest news articles from various sources through a RESTful API.
- Browse News: View the latest news articles from multiple sources.
- Search: Search for news articles by keyword or topic.
- Filter: Filter news articles by category, date, or source.
- Save Favorites: Save favorite articles for later reading.
- User Authentication: Secure user authentication system to manage saved favorites.
-
- HTML, CSS, JavaScript
- React.js
- Axios for API requests
-
- Node.js
- Express.js
-
- MongoDB (for storing user favorites)
-
- JSON Web Tokens (JWT) for authentication
-
- Integrated with News API for fetching news articles
- Clone the repository:
- Navigate to the project directory:
- cd NewsReport
- Install dependencies for both the frontend and backend:
- cd client && npm install
- cd ../server && npm install
- Configure environment variables:
- Create a .env file in the server directory.
- Define environment variables for MongoDB connection URI, JWT secret, and News API key.
- Start the backend as well as frontend server:
- npm run both
- Open your browser and visit http://localhost:3000 to access the application.