A Next.js complete beginner tutorial using the Spotify API

In this video I’m joined by Ebonie, otherwise known as MetalAndCoffee_ — web developer, Metal DJ and Twitch streamer — to set up a new project in Next.js to curate music recommendations using the Spotify API.

This video tutorial takes an in-depth …


This content originally appeared on DEV Community and was authored by Salma Alam-Naylor

In this video I'm joined by Ebonie, otherwise known as MetalAndCoffee_ — web developer, Metal DJ and Twitch streamer — to set up a new project in Next.js to curate music recommendations using the Spotify API.

This video tutorial takes an in-depth look at the structure of a Next.js application for complete beginners. I also include a demonstration of some tips and tricks on how to make your project more accessible and how to improve the developer experience, including How I set up my new Next.js projects with a handy bash script and How to avoid using relative path imports in Next.js.

In the project we use getStaticProps() to fetch data from Spotify at build-time to generate static pages that work without JavaScript on the client. We also use getStaticPaths() to generate over 100 dynamic routes at build time using data from the Spotify API. It works really well!

Source code

View the code for this project on GitHub.

Video outline

Click on the links below to jump to the relevant sections of the video.

This video was recorded live on Twitch on Friday 30th July 2021.


This content originally appeared on DEV Community and was authored by Salma Alam-Naylor


Print Share Comment Cite Upload Translate Updates
APA

Salma Alam-Naylor | Sciencx (2021-08-05T08:43:14+00:00) A Next.js complete beginner tutorial using the Spotify API. Retrieved from https://www.scien.cx/2021/08/05/a-next-js-complete-beginner-tutorial-using-the-spotify-api/

MLA
" » A Next.js complete beginner tutorial using the Spotify API." Salma Alam-Naylor | Sciencx - Thursday August 5, 2021, https://www.scien.cx/2021/08/05/a-next-js-complete-beginner-tutorial-using-the-spotify-api/
HARVARD
Salma Alam-Naylor | Sciencx Thursday August 5, 2021 » A Next.js complete beginner tutorial using the Spotify API., viewed ,<https://www.scien.cx/2021/08/05/a-next-js-complete-beginner-tutorial-using-the-spotify-api/>
VANCOUVER
Salma Alam-Naylor | Sciencx - » A Next.js complete beginner tutorial using the Spotify API. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/05/a-next-js-complete-beginner-tutorial-using-the-spotify-api/
CHICAGO
" » A Next.js complete beginner tutorial using the Spotify API." Salma Alam-Naylor | Sciencx - Accessed . https://www.scien.cx/2021/08/05/a-next-js-complete-beginner-tutorial-using-the-spotify-api/
IEEE
" » A Next.js complete beginner tutorial using the Spotify API." Salma Alam-Naylor | Sciencx [Online]. Available: https://www.scien.cx/2021/08/05/a-next-js-complete-beginner-tutorial-using-the-spotify-api/. [Accessed: ]
rf:citation
» A Next.js complete beginner tutorial using the Spotify API | Salma Alam-Naylor | Sciencx | https://www.scien.cx/2021/08/05/a-next-js-complete-beginner-tutorial-using-the-spotify-api/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.