Project for slingshotahead.com's technical/specialization test
- Node.js (with ESM)
- Typescript
- Puppeteer
- Cheerio + Node-fetch
- Express.js
- Run
git cloneor download the code as a zip from GitHub - Run
yarn installto download required dependencies - Finally, run
yarn devandyarn watchand access the website onlocalhost:5500
/topics: If a limit is provided, the API will returnlimit * 30items back. By default, limit is set to 1./topics/:topic: Returns a feed of popular articles categorized under the topic./articles/trending: Scrapes the trending articles on medium's home page./authors/:author: Returns information and recent articles from the author.
Test it out by using CURL, Postman, or any language of your choosing!
The website is deployed on Railway. No environment variables need ot be set.
https://medium-api-production.up.railway.app
Explanation of how everything works and the limitations of building said API.