Welcome to the Daily Digest News App! This application is built using the MERN stack (MongoDB, Express, React, and Node.js) and provides a platform to fetch the latest and live news from various sources using the News API. The app offers several features to enhance your news reading experience.
The Daily Digest utilizes the News API to fetch the most up-to-date news articles from reliable sources. It provides real-time access to news articles from around the world.
The app offers a wide range of news categories to cater to different interests. You can explore news articles from the following categories:
- General
- Business
- Entertainment
- Health
- Science
- Sports
- Technology
Simply select a category, and the app will display relevant news articles.
To access personalized features and enhance your experience, the app includes a login and sign-up page. Users can create an account, log in securely, and enjoy additional functionalities.
Found an interesting article that you want to read later? No problem! The Daily Digest App allows you to bookmark your favorite news articles. You can easily save them and access them later from your bookmarks section.
Customize your reading experience with the light and dark mode options. Whether you prefer a light background for a clean look or a dark background for better readability at night, the app has you covered. Switch between modes effortlessly to suit your preferences.
To run the Daily Digest App locally, you need to have the following software installed on your machine:
- Node.js
- MongoDB
Follow these steps to install and run the Daily Digest News App:
- Clone the repository:
git clone https://github.com/Om-Khode/Daily-Digest.git
- Change into the project directory:
cd Daily-Digest
- Install the dependencies for both the server and client:
npm install
cd backend && npm install
- Configure the environment variables:
-
Create a
.envfile in therootdirectory. -
Obtain an API key from News API by signing up for an account.
-
Add the following variables to the
.envfile:REACT_APP_NEWS_API- Your API key obtained from the News API.REACT_APP_URL- The URI for your backend calls.
-
Create a
.envfile in the backend directory. -
Add the following variables to the
.envfile:PORT- The port on which your your server will run.SECRET- Your secret key for JWT authentication.CONNECTION_STRING- The URI for your MongoDB database.
- Start the development server:
In the root directory, run npm start to start the Node.js server.
In the backend directory, run npm start to start the React development server.
Open your browser and navigate to http://localhost:3000 to access the News App.
The Daily Digest News App was developed by Om Khode and welcomes contributions from the open-source community.
If you encounter any issues or have suggestions for improvements, please create a new issue on the GitHub repository.
The News App extends its gratitude to the following resources and individuals:
-
CodeWithHarry: For their comprehensive tutorials and guidance on frontend development. Their educational content was instrumental in building the frontend of the News App.
-
Bootstrap: For providing an extensive collection of CSS and JavaScript components. Bootstrap played a crucial role in designing and styling the News App, making it visually appealing and responsive.
-
The developers of the News API: For providing a reliable and efficient API that allows the News App to fetch the latest news articles from various sources. The app's functionality heavily relies on the News API's robust infrastructure.
This project is licensed under the MIT License.