A interesting way to remain updated with the happenings around the world with your virtual assistant Alan. You can ask Alan any kind of news you want and also bookmark the news you like or want to read it later.
Newsapi.org does not provide articles on its developer plan(i.e. cors is available only for localhost) so this website does not show articles when hosted. Watch this demo to view this website
-
-
Home Page
- It shows lastest news and a header containing various buttons
- A sidebar containing different categories.
-
Bookmarks Page
- It shows news bookmarked by the user.
- User can also delete the articles from bookmarked news.
-
Commands Page:
- Show all the commands needed to Search news.
-
SignIn Page
- Sign in and Sign up options
- New user can use Sign up to sign in through Email and Password.
- Sign in with Google button.
-
-
-
Alan Button
- Different Alan commands.
- New user can read the alan commands from commands page.
- Makes the app voice controlled and interesting.
-
Search Bar
- Option to search the news by typing.
- If user wants news about a particular topic he can use it.
- It makes the interaction faster.
-
Side Bar
- Option to click the different categories.
- User can get the news only by clicking.
-
-
Clone the repository to your local system.
https://github.com/rajgautam-cloud/newsistic
-
Firebase API Setup:
-
Go to Firebase Console and follow the steps to create a new Firebase project.
-
Select
</>
, Add a project via Code. -
Create a new web app using the steps provided on the console.
-
You will recieve a firebasConfig object with the first paramter as API key. Copy it, which will look something like:
cosnt firebaseConfig = { apiKey: "process.env.REACT_APP_FIREBASE", authDomain: "AUTH_DOMAIN", projectId: "PROJECT_ID", storageBucket: "STORAGE_BUCKET", messagingSenderId: "*************", appId: "******************************", measurementId: "*************" };
-
After you get the Firebase API key, create a .env file in the root folder of the repository
-
Insert the folowing snippet in the file
REACT_APP_FIREBASE="API_KEY_HERE"
-
-
News API Setup:
-
Go to the following link and set up a new project from https://newsapi.org//
-
Get the Api key
-
A new API key will be generated. Copy it in the .env file.
REACT_APP_NEWSAPI="API_KEY_HERE"
-
-
Ensure that .env is added in .gitignore file.
-
In the root folder and enter the following commands in the CLI
npm i or yarn npm start or yarn start
-
If you wish to contribute, either look for issues already created or create an issue if you have a new idea.