Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
February 3, 2021 05:50 pm GMT

Embed dev.to articles in your Vue app

I was looking for a way to show posts from dev.to on my website and I found this post by comscience who made exactly that in React, so I made a Vue version with Vuetify.
Here you go:

You can also install it via npm:
npm i dev-to-embed-vue

And then import the component in your app:

import DevToEmbed from 'dev-to-embed-vue/src/DevToEmbed'
Enter fullscreen mode Exit fullscreen mode

And use it in your template:

<DevToEmbed userName="venatus"/>
Enter fullscreen mode Exit fullscreen mode

Source code:

dev_to_embed

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.


Original Link: https://dev.to/venatus/embed-dev-to-articles-in-your-vue-app-6nl

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To