Skip to content

BillConley01/Hack-News-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacker-News-Search

A web page that allows users to perform a keyword search of Hacker News articles

This is the code for a basic Web application made with React to provides for a key word search of hacker News Articles. It originated from an assignment in Week #15 of MIT's MERN Coding Bootcamp. The challenge was to fetch data from an external source and build a site and user experience around the data organizing and displaying the fetched data in a way that is appropriate to the story being told with the data. .

Features

  1. React useState is used to hold the URL address for the article feeds.
  2. React useEffect is used to implement the fetch functions.
  3. React useReducer is used to track the status of the data stream.
  4. Axios is used to make the fetch request.
  5. ReactBoot is used for styling components.
  6. The Hacker New feed public API was used as the source for the article feed.

To see the web page in action follow this link:

Link to CodeSandbox

To use:

  • Fork this repository
  • Clone copy to your desktop
  • Open a command line on your computer and run the command cd path/to/project/root. (path/to/project/root should be replaced with the actual path to the project folder)
  • Within the same command-line window, run 'npm install' to install all dependencies.
  • Within the same command-line window, run 'npm start' to start the application in your browser.

Contributors

  • Bill Conley
  • Dr. John Williams

License

Copyright (c) 2021 Bill Conley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A web page that allows users to perform a keyword search of Hacker News articles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published