Skip to content

joshuajharris/university-announcements-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

University Announcement API

Heroku David
ODU's Announcements, seen here and in the emails, in api form.

Setup


Installation

  1. Clone the Repo
git clone git@github.com:joshuajharris/university-announcements-api.git
cd university-announcements-api
  1. Install Node JS
    • on Mac OSX - brew install node
    • on Windows using chocolatey - choco install nodejs
  2. Install dependencies npm install

How to Run

  1. In a terminal, in the project directory run node index.js
  2. Set environment variables.
export MONGOLAB_URI=enter_your_uri_here # defaults to mongodb://localhost:27017
export HOST=enter_app_host # defaults to http://localhost

If running local mongo instance make a collection called "announcements".

Endpoints


Scrapes university announcements and presents them in a json object

Author

github: @joshuajharris

pic