Coder Social home page Coder Social logo

colinlienard / portfolio-2022 Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 1.0 59.63 MB

✨ My portfolio built with Nuxt and Nuxt Content

Home Page: https://colin-lienard.fr

License: MIT License

Vue 78.49% TypeScript 9.57% SCSS 11.53% JavaScript 0.42%
nuxt portfolio vue locomotive-scroll front-end-developer

portfolio-2022's Introduction

🖼 My new portfolio built with nuxt and @nuxt/content

Deployment License


⚒️ Tech stack

🍱 Adding content

Projects

Add a new .md file in /content/projects/ and follow the same patern as the other projects. Add images in /public/images/projects/.

Skills

Add a new item in /content/skills.yaml and an image in /public/images/skills/.

⚡ Running locally

# 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=...

🎸 Get a new Spotify refresh token

Request user authorization

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.

Request access and refresh tokens

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.

📄 License

MIT © Colin Lienard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.