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
- 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 |
Install the dependencies:
bun installSetup database:
Copy and edit .env file:
bun db:upGenerate Prisma Client and migrate database:
bun db:genbun db:migrateSeed initial songs:
bun db:seedStart the development server:
bun devYour application will be available at http://localhost:3000.