Simple music player using react-native and iTunes API.
This project support Android & IOS apps. min Android version = 21 min IOS version = 10
- Search music/song by artist
- Play Music
- Pause Music
- Seek Music
- Backward Music
- Forward Music
Before run or build this project, if you have't setup react-native environtment, kindly check this react-native documentation https://reactnative.dev/docs/environment-setup
In this project, I separate testing into a few units, such as:
Redux testing
= to check that redux action & reducer working correctlySagas testing
= to check that sagas logic or action working correctlyAPI testing
= to check that response as expectedFunction (Helper) testing
= to check that input-output as expected.Component testing
= to check that the component renders correctly.
You can check the test script under Test
folder in root directory,
- run
yarn install
ornpm install
from terminal - run
yarn updateSnapshot
to create component screenshot & run test - run
yarn test
to run test - run
yarn coverage
to generate coverage file
- You must setup react-native environtment
- run
yarn install
ornpm install
from terminal
A. Android
- make sure emulator is active or your android device is connected to the PC (make sure that your device in the same network)
- run command
npx react-native run-android
(for debug) ornpx react-native run-android --variant=release
(for release) - wait until all process finish
OR you can build release APK and install to your android devices manually
- run
cd android && ./gradlew assembleRelease
- wait until process finish, then you can find the apk under
android/app/build/outputs/apk/release
B. IOS
- go to
ios
directory of this project from your terminal - run
pod install
- go to
ios
directory of this project from finder - double click on
iTunesClone.xcworkspace
- once it opened, then select IOS simulator, next to play button.
- press play button and wait until process finish