App that searchs in Spotify based on user input. It can search albums, artists and tracks
Improvements: let user select between them.
- Vue 3 as the main frontend framework (with Typescript)
- Nuxt 3 Beta as the meta framework
- Vite (with Nuxi) for build and development server
- Pinia for state management
- SCSS
- Tailwind CSS
- Nitro Server Engine (from Nuxt) for API endpoint that retrieve app token. Improvement: check if token still valid and avoid retrieving it again. Maybe make all calls from Nitro instead of directly from front? Does it make any sense?
- Prettier + ESLint custom config
- Unit Tests with Vitest
- E2E Tests with Cypress
- Or maybe we can try with Testing Library...
- Result page: don't know if will need to filter in total results, or maybe a posibility to search for an item based on its id (hopefully last option)
- Song Player: WebAudioAPI? SpotifyAPI? Maybe both?
- Separate .env and .local.env
- Check if token is already provided
- All http calls from backend? Not actually sure
- More detailed types and interfaces
- Different component depend on item type? (at least a different design... --Layouts--)
You should provice your own environment variables:
ACCOUNT_TOKEN_URL --> Url for retrieving access token
CLIENT_ID --> Your Spotify App Client ID
CLIENT_SECRET --> Your Spotify App Client Secret
v16.13.2
npm install && npm run dev
(this will run concurrently run backend server and frontend one. Thanks to Nuxt)
npm run build (for the frontend)