The first assessment for the Cloud Computing unit requires that you build a web application – a server-side mashup – and then use a Docker container to deploy this application to a public cloud instance
News Content Analysis is a web mashup developed was part of the course requirements for CAB432, Semester 2, 2019. News Content Analysis aims to provide users with a summary of content analysis from top headlines in four different countries.
Users can view the content labels of top headlines in their chosen country with utilising News and Cloud Natural Language APIs. The relevant results are presented in short articles with title, description, images and published date alongside the predicted labels. From this point, the user can click on a given button on any article to view all news that have similar labels
- Load Website and Select Country (Australia)
- View the article title and its content label
- Click “View Similar News” button on article above
Prequisites:
- Create a GCP Account
- Register the Cloud Natural Language API
- Save the json file that contains information to use the API
- Get the News API key
Use Terminal or Command Prompt to run the code
- Install Docker
sudo curl -fsSL https://get.docker.com/ | sh
- Download the folder
git clone https://github.com/tranquanghuy0801/CAB432_Cloud_Computing
- Go to the directory and install dependencies
cd Assignment1 && cd app
npm install
-
Save the json file downloaded into the app/ directory
-
Create the .env file in app/ directory and paste the following into with News API and json file information
NewsAPIKey=******
GOOGLE_APPLICATION_CREDENTIALS=******.json
- Run Dockerfile
cd ../
docker build -t docker-mashup .
docker run -p 3000:8000 -i -t docker-mashup
- Run the web localhost
http://localhost:3000