This is a simple JavaScript code snippet that fetches popular songs using the Genius API. It utilizes the Genius API's search functionality and filters the results based on popularity.
To use this code, follow the steps below:
- Node.js installed on your machine
- Genius API access token (obtainable by signing up for a Genius API account)
-
Clone the repository:
git clone https://github.com/fossyy/song-searching-website.git
-
Navigate to the project directory:
cd project-directory
-
Install the dependencies:
npm install
-
Start the development server:
npm start
The website will be accessible at http://localhost:3000.
The website uses an API to fetch movie data. To configure the API, follow these steps:
-
Obtain an API key from API Provider.
-
Open the
api.js
file in thesrc
directory. -
Replace
'YOUR_API_KEY'
with your actual API key:const API_KEY = 'YOUR_API_KEY';
-
Save the changes.
To deploy the website to a production environment, follow these steps:
-
Build the production-ready optimized bundle:
npm run build
-
Deploy the contents of the build directory to your chosen hosting platform.
Contributions are welcome! If you have any improvements or bug fixes, feel free to submit a pull request.
This project is licensed under the MIT License.