https://github.com/thomasbnt/devtoprofile
An example of getting data from the dev.to API to display its own articles.
https://github.com/thomasbnt/devtoprofile
api devto fetch fetch-api hacktoberfest vue vuejs
Last synced: about 1 month ago
JSON representation
An example of getting data from the dev.to API to display its own articles.
- Host: GitHub
- URL: https://github.com/thomasbnt/devtoprofile
- Owner: thomasbnt
- Created: 2022-07-28T17:32:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T14:51:02.000Z (2 months ago)
- Last Synced: 2025-04-16T22:08:42.072Z (about 1 month ago)
- Topics: api, devto, fetch, fetch-api, hacktoberfest, vue, vuejs
- Language: Vue
- Homepage: https://devtoprofile.thomasbnt.dev
- Size: 813 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
Awesome Lists containing this project
README
[](https://vuejs.org/)

[](https://depfu.com/github/thomasbnt/devtoprofile?project_id=36535)
[](https://thomasbnt.dev/discord)
[](https://github.com/sponsors/thomasbnt)
[](https://twitter.com/Thomasbnt_)# Getting data from the API of DEV.TO
An example of getting data from the dev.to API to display its own articles. Work with **VueJS**, **fetch** and the **[API v0 of dev.to](https://developers.forem.com/api)** (this version will be DEPRECIATED. See [the post on DEV](https://dev.to/devteam/documenting-the-forem-v1-api-15ck)).
> **Note**
>
> [See the preview of this project here →](https://devtoprofile.thomasbnt.dev/)[](https://devtoprofile.thomasbnt.dev/)
> **Note**
>
> More projects like that ? [Check this list](https://github.com/stars/thomasbnt/lists/created-api-stuff).
>
> [](https://github.com/stars/thomasbnt/lists/created-api-stuff)## How to get my data ?
Change this lines in the file **src/components/devto.vue** :
```javascript
const USERID_DEVTO = '18254'
const USERNAME_DEVTO = 'thomasbnt'
```## How to get my ID ?
Get your ID by using the **website**. Press F12, and on the `body` element,
you have a `data-user` attribute. This is your ID.
____
## How to develop this project
### Project setup
```bash
yarn install
```### Compiles and hot-reloads for development
```bash
yarn serve
```### Compiles and minifies for production
```bash
yarn build
```### Lints and fixes files
```bash
yarn lint
```### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).