APIs for music streaming covering essential functionalities for user management, browsing albums and songs, managing playlists, and searching songs by artists/albums.
To set up the app in a development environment:
- Clone the repository from GitHub:
git clone https://github.com/JSAssassin/sonic-connect.git
cd sonic-connect
- Install the required dependencies:
npm install
- Start the application:
npm run dev
To set up the app in a production environment:
Follow the same steps as above, but to start the application, run:
npm run prod
For seeding databases with mock data for development and testing, use the mock data seeder script. This script allows you to generate mock users, artists, albums, and songs in the database.
To run the tests, use the following command:
npm run test
Note: The --silent
flag is set to true in the test script. To get logs for
debugging purposes, remove the --silent
flag from the script.
To check the test coverage, use the following command:
npm run coverage
To ensure the code follows the project's style guidelines, run the linter with:
npm run lint
For a detailed explanation of the APIs used in this project, please refer to the API Documentation.
Contributions to Sonic Connect are welcome! Please fork the repository, create a new branch, and submit a pull request. Ensure that your code follows the linting and testing guidelines.
This project is licensed under the MIT License. See the LICENSE file for more details.