Unfortunately, dev.to does not display the ID of the blog post on the page. So once it's created, you can open your browser console (Usually F12 OR 'Option + ⌘ + J' (on macOS), or 'Shift + CTRL + J' (on Windows/Linux)) and paste the following code to retrieve the blog post ID:
$('div[data-article-id]').getAttribute('data-article-id')
If anyone knows of an easier way please help by submitting a PR here. 😄
-
Install Yarn and navigate to the repo root. Run
Yarn
to downloadnode_modules
and dependencies described inpackage.json
. This will also update / createyarn.lock
-
package.json
also contains some scripts that can then be run locally forprettier
andembedme
. Also used in the Github Action when a post is published