NewsMapper is an interactive news app which scrapes world events and places them geographically on a map. Instead of browsing news from a list, you can see exactly where events are occurring.
-
Create a MongoDB database called
globeMapper
with a collection calledevents
. -
Populate the database be modifying the GlobeMapperApplication in the Java main folder: uncomment
e.saveWeeks(1)
and change to the amount of weeks you want from the past. Then rune.saveWeeks(1)
daily to get daily news into the database. -
Run the Spring Boot application (backend folder):
mvn spring-boot:run
-
Navigate to the frontend folder and install dependencies:
cd globemapperfrontend npm install react-scripts @google/generative-ai @fortawesome/react-fontawesome @fortawesome/free-solid-svg-icons
-
Run the frontend React application:
npm start
-
Open a browser and go to
localhost:3000
-
Explore and enjoy the app!
