Spotify Electron is a cross-platform music streaming desktop app made with Electron-React frontend and Python-FastAPI-AWS Backend. The goal is to reproduce the original Spotify functionality while adding new ones like uploading songs.
In both Frontend and Backend a Enum with the Genre value for songs is defined. This is useful for mapping the string value of the genres between frontend and backend. Some of the Genres dont have an english name and its desirable that theyre unified.
Context
The app was only in spanish so some of the genre still have the non translated name.
The app will be migrated to be only in english. This includes all documentation, code...
How to do it
Update Genre names both in frontend in backend ( they have to match in both sides ) and the comments associated.
Backend
Genres are defined in genre_schema.py file. Rename the non translated genres into english.
Frontend
Genres are defined in genre.ts file. Rename the genres to match the backend ones. Translate the comments about the associated color.
Testing
Run tests both for backend and frontend
Launch the app and check if the following still works:
Create song and selecting genre
Search that song in explore section using the genre. Check if the song is under the genre included during its creation.
Description
In both Frontend and Backend a Enum with the Genre value for songs is defined. This is useful for mapping the string value of the genres between frontend and backend. Some of the Genres dont have an english name and its desirable that theyre unified.
Context
How to do it
Update Genre names both in frontend in backend ( they have to match in both sides ) and the comments associated.
Backend
Genres are defined in
genre_schema.py
file. Rename the non translated genres into english.Frontend
Genres are defined in
genre.ts
file. Rename the genres to match the backend ones. Translate the comments about the associated color.Testing
Run tests both for backend and frontend
Launch the app and check if the following still works:
Create song and selecting genre
Search that song in explore section using the genre. Check if the song is under the genre included during its creation.