Skip to content

MyMusic is a simple web application that allows users to fetch and display song lyrics by entering the artist's name and the song title. It uses the [Lyrics.ovh API](https://lyricsovh.docs.apiary.io/#) to retrieve song lyrics.

Notifications You must be signed in to change notification settings

TriptiMirani/MyMusic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyMusic

MyMusic is a simple web application that allows users to fetch and display song lyrics by entering the artist's name and the song title. It uses the Lyrics.ovh API to retrieve song lyrics.

Features

  • Search for song lyrics by artist and title.
  • Displays lyrics in a clean and user-friendly interface.
  • Fetches lyrics using the Lyrics.ovh API.

Screenshots

Screenshot 2024-10-18 151842 Screenshot 2024-10-18 151745

API

We use the Lyrics.ovh API to fetch song lyrics. It is a free API that provides lyrics for songs based on the artist name and song title.

API Endpoint:

GET https://api.lyrics.ovh/v1/artist/title

  • artist: Name of the artist.
  • title: Name of the song.

Example GET request for Postman

https://api.lyrics.ovh/v1/Coldplay/Viva La Vida

Getting Started

Prerequisites

Before you begin, ensure you have the following:

A web browser (Chrome, Firefox, etc.).

Git installed on your machine.

Run Locally

Clone the project

  git clone https://github.com/TriptiMirani/MyMusic.git

Go to the project directory

  cd MyMusic

Dependencies

The following packages are required for this project:

  • axios: For making API requests
  • body-parser: To parse incoming request bodies in a middleware
  • ejs: Template engine for rendering HTML pages
  • express: Framework for building the backend of the web app
  • nodemon: Development tool to automatically restart the server on changes
  npm i

Start the server

  nodemon .\index.js

Usage

Enter the artist's name and the song title in the input fields.

Click the Submit button to fetch the lyrics.

The lyrics will be displayed below the search form.

Example

If you search for:

Artist: Coldplay

Song Title: Viva La Vida

The application will display the lyrics for Coldplay's "Viva La Vida"

Feedback

If you have any feedback, please reach out to me at Twitter/X

About

MyMusic is a simple web application that allows users to fetch and display song lyrics by entering the artist's name and the song title. It uses the [Lyrics.ovh API](https://lyricsovh.docs.apiary.io/#) to retrieve song lyrics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published