https://github.com/thomasbnt/lastfmprofile
An example of to get data from the API of Last.fm and show with Vue 3.
https://github.com/thomasbnt/lastfmprofile
api cloudflare-pages lastfm sass vitejs vuejs
Last synced: about 1 month ago
JSON representation
An example of to get data from the API of Last.fm and show with Vue 3.
- Host: GitHub
- URL: https://github.com/thomasbnt/lastfmprofile
- Owner: thomasbnt
- Created: 2022-10-21T23:56:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-17T07:40:30.000Z (about 1 month ago)
- Last Synced: 2025-04-22T10:37:58.485Z (about 1 month ago)
- Topics: api, cloudflare-pages, lastfm, sass, vitejs, vuejs
- Language: Vue
- Homepage: https://lastfmprofile.thomasbnt.dev
- Size: 779 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://vuejs.org/)

[](https://depfu.com/github/thomasbnt/lastfmprofile?project_id=36899)
[](https://thomasbnt.dev/discord)
[](https://twitter.com/Thomasbnt_)
[](https://www.last.fm/user/thomasbnt)
[](https://github.com/sponsors/thomasbnt)# Getting data
An example to get your data from **Last.fm**. Work with **VueJS**, **fetch** and the **[API of Last.fm](https://www.last.fm/api)**.
> **Note**
>
> [See the preview of this project here →](https://lastfmprofile.thomasbnt.dev/)[](https://lastfmprofile.thomasbnt.dev/)
You can test the project in two ways. Either you enter the two values in the form settings or you fill in the data directly in the URL :
```
https://lastfmprofile.thomasbnt.dev/?key=YOUR_LASTFM_KEY&username=YOUR_LASTFM_USERNAME
````key` is your **API key** and `username` is your **username** on **Last.fm**.
> **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 setup the project ?
Edit the [`.env.example`](.env.example) into `.env` and add your **Last.fm API key**.
```bash
# .env
VITE_USERNAME=thomasbnt
# Caution : VITE_ prefix is required, and he show to the client your key.
VITE_LASTFM_KEY=YOUR_API_KEY
```### And how to get the Last.fm API key ?
You can get your **Last.fm API key** [here](https://www.last.fm/api/account/create) or [grab an already created key](https://www.last.fm/api/accounts).
## The behind the scene
This project use **Vue.js** and **Vite**. Also, a bit of **SASS**, and **[Lucide](https://lucide.dev/)** for icons.
The font family is [Lato](https://fonts.google.com/specimen/Lato).
____
## 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/).