This repo contains the end-to-end source code for devto.ndsn.io and is published entirely free and under the MIT License - Hopefully the code and below description explains the architecture well!
If you do end up using this for any commercial purpose, or found the code useful please consider buying me a coffee:
A website built with 11ty that pulls posts from a Dev.to RSS feed and generates a static site with links to the posts. Live Demo
Check out the associated blog post on Dev.to here!
(Click image to view full size. Made with Excalidraw - raw file: architecture.excalidraw)
Source folder : _source
Output folder : _build
To build:
npm install
npx @11ty/eleventy
To modify the feed that the script calls, either set the environment variable DEVTO_APIURL
or change the fallback URL in the _data/devtoapi.js
file in the _source
folder.
First, build the files, then upload the _build
directory your favourite static site host!