https://siqi-du.github.io/News/
This project includes a News Website and a corresponding iOS version application.
The server retrieve latest news from The Guardian and NYTimes APIs and display to users. Users can choose to view news in different categories like Technology, Business or Sports. Users can also search news, share, bookmark, or comment on news they like. It is responsive on different device.
This website is now hosted on AWS. I uses React as the front-end framework and Node.js on the back-end with Express as the web server framework and I use the Model-View-Controller design pattern.
The iOS version is built with Swift. It reuses the website’s endpoints to fetch news. Besides all the functions of the website, it has a new trending module that can analyse search keyword trends through Google trends API.
News Service
Function | HTTP Method | Endpoint |
---|---|---|
Get Latest News | GET | /rest/home?source=[source] |
Get News By Different Category | GET | /rest/[section]?source=[source] |
View News Article | GET | /rest/article?id=[article_id]&source=[source] |
Search for News | GET | /rest/search?q=[query] |
Get Search keyword trends | GET | /rest/trends?q=[keyword] |
Response are News list or news article returned in json
Demo: NewsApp