OpenMusic API V1

This is submission for Dicoding course, Belajar Fundamental Aplikasi Back-End.

Prerequisites

  1. Node.js v18
  2. NPM v9

or with nvm (Node Version Manager),

  1. Run nvm use.

Setup

  1. Clone or download the repository.
  2. Go to the project directory and run npm install.
  3. Create .env file by copying the .env.example, run cp .env.example .env.
  4. Update the database configuration in .env file
  5. Migrate the database npm run migrate -- up or ./script/migrate.sh up.

Usage

Run Server (Dev)

  1. Run dev server, npm run dev.

Run Server (Prod)

  1. Run dev server, npm run start.