Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bobby278tr/react_dailydose


https://github.com/bobby278tr/react_dailydose

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# DailyDose

DailyDose is a news app that can be used to grab quick daily news bites If you are interested in news, weather, politics, and sports news, then DailyDose is for you

## About Project

DailyDose is a news app that can be used to grab quick daily news bites If you are interested in news, weather, politics, and sports news, then DailyDose is for you.
It has separate pages for each category. Which makes it efficient to surf and read a particular type of news at a time. We have used News API to get the latest news from the below link
(https://newsapi.org/)

To create the project we first need to give the following command

```
npx create-react-app myapp
```

This will create a React app with all the files and packages installed in it.

This NewApp contains Eight pages depending upon the category of the news being displayed

1) HomePage - This is the home page where you can see the latest News from different categories

![Home Page](DailyDoseImages/Home.png)

2) Business - This Page shows the business related News

![Business text](DailyDoseImages/Business.png)

3) Entertainment - Displaying entertainment related News

![Entertainment Page](DailyDoseImages/Entertainment.png)

4) Health - Displays health-related News

![Health Page](DailyDoseImages/Health.png)

5) Science & Technology - Shows the science related News

![Science Page](DailyDoseImages/Science.png)

6) Sports - For displaying sports-related News

![Sports Page](DailyDoseImages/Sports.png)

7) Technology - Shows the technology related News

![Technology Page](DailyDoseImages/Technology.png)

To run a react app we need to give the following command.

```
npm start
```
and to build the project we need to create a production build using the following command
```
npm run build
```
This command will optimize the project taking only the needed files and packages.

## Geeting Started

Cloning a repository

1. On GitHub.com, navigate to the main page of the repository.

2. Above the list of files, click <>Code.

3. Copy the URL for the repository.

    - To clone the repository using HTTPS, under "HTTPS".

    - To clone the repository using an SSH key, including a certificate issued by your organization's SSH certificate authority, click SSH.

    - To clone a repository using GitHub CLI, click GitHub CLI.

7. Open Git Bash.

8. Change the current working directory to the location where you want the cloned directory.

9. Type git clone, and then paste the URL you copied earlier.

```
git clone https://github.com/Bobby278tr/Text-Analyzer.git
```

10. Press Enter to create your local clone.

```
$ git clone https://github.com/Bobby278tr/Text-Analyzer.git
```

### Prerequisites

The Software required for this project are:

1. Vs code IDE
2. Chrome or Microsoft Edge
3. Nodejs
4. rect-router=dom
5. react-infinite-scroll-component
6. react-top-loading-bar

### Installing

1. You can install the Vs code IDE from here Depending upon the OS you use
(https://code.visualstudio.com/download)

2. You can install Google Chrome from the following
(https://www.google.com/chrome/?brand=YTUH&gclid=CjwKCAiA1-6sBhAoEiwArqlGPhvHNSduAAzHcSI6G6jEMcyWyLB_eGRoiXAGDrnP7x83Kru47Q78GxoC4ncQAvD_BwE&gclsrc=aw.ds)

3. You can install Microsoft Edge from the following (if required)
(https://www.microsoft.com/en-in/edge/download?form=MA13FJ)

4. You can install Nodejs from the following (https://nodejs.org/en/). Once nodejs setup is done run the below commands to verify.

```
node --version
```

This will show the version of node installed in your system if it is already installed otherwise follow these

```
npm --version
```

5. To install the react-router-dom execute the following command in your terminal

```
npm install react-router-dom
```

if you want to install a particular version then execute the following command after adding the required version

```
npm install react-router-dom@"version"
```

6. To install the react-top-loading-bar execute the following command in your terminal

```
npm i react-infinite-scroll-component
```

7. To install the react-infinite-scroll-component execute the following command in your terminal

```
npm i react-top-loading-bar
```

## Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (git checkout -b AddingChanges)
3. Commit your changes (git commit -m 'Add some Changes')
4. Push to the Branch (git push origin AddingChanges)
5. Open a Pull Request

## Contact

Bobby Tripathi - [@e-mail] [email protected]

Project Link: [https://github.com/Bobby278tr/React_DailyDose.git](https://github.com/Bobby278tr/React_DailyDose.git)

## Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)