This is a Next.js project bootstrapped with create-next-app
.
Copy the sample .env
files and fill in necessary information.
To get Spotify stats working you'll need to get a client ID, client secret and refresh token from Spotify.
First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
New pages can be added by creating new files in the pages/
directory.
API routes can be accessed on e.g. http://localhost:3000/api/health. This endpoint can be edited in pages/api/health.js
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
TBD
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the official Next.js deployment documentation for more details.