Node Version NPM Version

Bookshelf API Submission by Dicoding

The final project which is a graduation requirement to complete the Back-End Basic Course.

Getting Started

Requirement

  1. Node
  2. npm

Installation

  1. Clone this repository https://github.com/panditya/bookshelf-api.git
  2. Change directory and copy .env from .env.example then adjust the configuration
  3. Install the required dependencies npm i or yarn install
  4. Run the application
    • Development mode npm run dev or yarn dev
    • Production mode npm run start or yarn start

Or if you prefer using Docker

Requirement (Docker)

  1. Docker

Installation (Docker)

  1. Clone this repository https://github.com/panditya/bookshelf-api.git
  2. Change directory and copy .env from .env.example then adjust the configuration
  3. Build the application image docker build -t panditya/bookshelf-api .
  4. Check the image once complete docker images
  5. Build and run the image docker run --name bookshelf-api -p 80:5000 -d panditya/bookshelf-api
  6. Inspect the container to make sure is up and running docker ps