Displays news articles that mention UIC in the last six months in reverse chronological order by using the Bing news API.
For the client, I chose the React library because it is popular, and for its ability to describe complex and dynamic interfaces using small, stateful, composable components without needing to work directly with the DOM.
For the server, I chose to use an Azure function in order to create an abstraction for both the search provider that was used and the API key because it shouldn't be on exposed on the client. Also, if I decide to use another news search provider in the future, I can leave the client alone, and just modify the Azure function.
In order to use the app, visit a demo installation at:
- Install nodejs.
- Clone this repository.
- run
npm install
in theclient
folder to install the dependencies. - Run
npm run build
in theclient
folder to create the deployment artifacts. - Once the build process completes successfully, take the contents of the generated
build
folder and upload it to your server. - Visit
index.html
in a web browser.
For development purposes, you can run npm start
in the client
folder to run a local server and open it a web browser.
-
Fork this repository on Github.
-
Clone your newly forked repository.
-
Update the
homepage
property inpackage.json
in theclient
folder with:https://<GITHUB ACCOUNT>.github.io/<REPOSITORY NAME>
For example:
-
In the
client
folder, runnpm install
. -
In the
client
folder, runnpm run deploy
. -
Once it completes successfully, visit the website at:
https://<GITHUB ACCOUNT>.github.io/<REPOSITORY NAME>
If you'd like to deploy the server to your own Azure account, you will need to make sure you update index.js
with your own Bing News Search API key, and then follow standard Azure processes for deploying function apps.
Instructions for that can be found at: