Giter VIP home page Giter VIP logo

newsapp's Introduction

News Finder (A New News App)

Table Of Contents

Screenshot

News-Finder-Screenshot

Description

This app helps you find a wide selection of articles from topics of your choosing! Simply search a topic and get a feed of articles that are relavant to your search. This was made in help by the news api

Technology

Technologies Used In This App:

  • React
  • Javascript
  • CSS
API:
  • News Api
NPMS:
  • React Loader Spinner

Author

Name: Brandon Diaz

Contact email: [email protected]

GitHub: 1Clide1

Installation

To run this app, first you need your own news api key. Simply go to newsapi.org and create an account, they will then in turn give you a key. After obtaining an api key, simply clone this repo or you can also download the source code in a zip file. Once you have cloned or downloaded the repo, go to the utils folder (preferably using a text editor like vscode) there you will see a file called API.js go into that file and simply paste your api key under the api key variable. After that is done you are good to go and you can run the app in local host to see how it works.

Usage

To use this app, like I said once it's up and running you just have type in a topic you want to see and you will automatically get the results for that topic!

Credits

I think this project went really well for me, I didn't focus too much on design and just made sure it worked in mobile viewing. I am still learning context api so I am not sure if I went about it the right way however, I do not think I made a janky solution so I will count that as a win for me. I did run into an issue with the context api just trying to use the state that stores the news data too early. What I mean by that is once I had the card layout as I wanted it to if I were to refresh the page the app would freak out because it was trying to render out the cards before I searched something. I made a loading state and that seemed to do the trick. My last issue which I am honestly not too sure to fix was I found out a nice way to compare the news article titles by using the sort function and .localcompare however .localcompare essentially says ' character comes before the letter A and I was not sure on how I would go about fixing that other than that I was honestly surprised to find a method that was clean and efficient while learning new things about javascript. Overall I am happy with how this turned out in a short notice.

newsapp's People

Contributors

1clide1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.