/sing-me-a-song

An API to find music recommendations - implementing unit tests

Primary LanguageJavaScript


Logo

Sing me a song

Do you trust people's musical preference? 👀 Then let me recommend you a song ☜(゚ヮ゚☜)
Explore the docs »

About the project

Sing me a song is an API to help people to make, get and give their opinion about music recommendation. Project made to improve unit tests skills while learning error handling.


Built with


Getting Started

Prerequisites

  • npm

Installation

  1. Clone backend repo
git clone https://github.com/cybalencar96/sing-me-a-song.git
  1. Install dependencies executing comand in root
npm i
  1. Create a .env.dev file in backend root folder with following variables
DB_USER
DB_HOST
DB_PASS
DB_PORT
DB_NAME
  1. Create a postgres database and fill .env.dev with database credentials
DB_USER=postgres
DB_HOST=localhost
DB_PASS=123456
DB_PORT=5432
DB_NAME=sing

  1. Run (copy & paste) the dump.sql statements in database

How to run

npm run dev