- UI → Vue.js
- Framework → Nuxt.js
- Content → Nuxt Content
- Langage → Typescript
- Smooth scrolling → Locomotive scroll
- Deployment → Vercel
- Styling → Sass
- Package Manager → pnpm
Add a new .md
file in /content/projects/
and follow the same patern as the other projects. Add images in /public/images/projects/
.
Add a new item in /content/skills.yaml
and an image in /public/images/skills/
.
# Installation (recommended for nuxt3)
pnpm i --shamefully-hoist
# Development server
pnpm dev
Add a .env
file with the following content:
NUXT_PUBLIC_SPOTIFY_CLIENT_ID=...
NUXT_PUBLIC_SPOTIFY_CLIENT_SECRET=...
NUXT_PUBLIC_SPOTIFY_REFRESH_TOKEN=...
Go to the following url:
https://accounts.spotify.com/authorize?client_id=<client_id>&response_type=code&redirect_uri=http://localhost:3000/&scope=user-read-currently-playing%20user-top-read
You will be redirected to localhost
width a code in the url params.
Encode the following in base64 using this website:
<client_id>:<client_secret>
Then run the following in a terminal with the encoded string and the code:
curl -H "Authorization: Basic <encoded>" -d grant_type=authorization_code -d code=<code> -d redirect_uri=http://localhost:3000/ https://accounts.spotify.com/api/token
You will get a response with a refresh token. Save it in an environment variable. It will never expire.
MIT © Colin Lienard