LA Hacks 2019 Project by Andrew Young, George Zhang, Justin Jeon, and Sanskar Gyawali
An application powered by an Express server that utilizes the Taboola Topics API and Twilio SMS API to bring you a concise look at the most trending news in the nation. Simply text the number and receive articles for categories you are interested in.
Feel free to try it out yourself by texting "OOTL" to +1 858 239 0343! (update 4/7/19: application no longer works due to Taboola API endpoints being no longer active)
Below is a non-exhaustive list of some of the technologies used in OOTL and the reasoning why these technologies were chosen.
- Taboola Topics API provides information about what kind of news is trending in the last 24 hours.
- Twilio SMS API allows receiving and sending text messages to and from clients.
- Bitly API gave us the ability to shorten URLS when sending article links back to users.
- Node almost needs no introduction. A JavaScript runtime for servers.
- Express is the most popular web framework for Node.
- Axios is a promise based HTTP client we used in Node.
- Clone the GitHub repository
- Run
npm install
to install dependencies - Create a
.env
file to store Bit.ly API token - Register phone number with Twilio
- Use ngrok to create URL that points to local port
- Point Twilio phone number's SMS web hook to ngrok URL
- Run
npm start
to start the server on Node!
- server.js: Main Express server that communicates with Twilio API and calls Taboola API
- parse_news.js: Parses the object returned from the Taboola API, extracting news articles that match the user's requested topic.
- bitly.js: Shortens news articles links using Bit.ly API