In this project, I used Express.js to build my REST API endpoints, Axios to make HTTP requests, and Docker to create a MongoDB container/image to persist the data.
When the browser points to http://localhost:8080/posts, each AggieFeed activities' id, published, title, and actor.displayName data properties are returned.
When the browser points to http://localhost:8080/rssData, RSS data is stored in a local MongoDB database in AggieFeed Activity Data Format.
When the browser points to http://localhost:8080/rssData/posts, the stored activities are sent.
- Clone this repository
- Ask Andrew for environment variables
- Run these commands in your terminal:
- npm install
- npm start
- Run 'docker-compose up' to run the container of the MongoDB image
- Navigate to http://localhost:8080/rssData to store RSS data into the MongoDB database.
- Navigate to http://localhost:8080/rssData/posts to see the activities.