Skip to content

lyrifix/lyrifix-api

Repository files navigation

🎵 Lyrifix API

Fix the Lyrics. Feel the Music. Lyrifix is your all-in-one global lyrics platform — made for music lovers, lyric hunters, and community contributors.

Lyrifix API is the backend of Lyrifix.com.

Read the complete explanation on the main repo: https://github.com/lyrifix/lyrifix

REST API Specification

  • Production: https://api.lyrifix.com
  • Local: http://localhost:3000

Songs:

Endpoint HTTP Description
/songs GET Get all songs
/songs/search?keyword= GET Get song by keyword
/songs/:slug GET Get song by slug
/songs POST Add new song
/songs/:id DELETE Delete song by id
/songs/:id PATCH Update song by id

Auth:

Endpoint HTTP Permission
/users GET Public
/users/:username GET Public
/auth/register POST Public
/auth/login POST Public
/auth/me GET Authenticated
/auth/logout POST Authenticated

Getting Started

Installation

Install the dependencies:

bun install

Development

Setup database:

Copy and edit .env file:

bun db:up

Generate Prisma Client and migrate database:

bun db:gen
bun db:migrate

Seed initial songs:

bun db:seed

Start the development server:

bun dev

Your application will be available at http://localhost:3000.

About

Lyrifix Backend API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6