Skip to content

labibramadhan/cbt-crossword-api

Repository files navigation

Computer Based Test - Crossword - REST API Server

Dependency Status devDependency Status

Table of Contents

  1. Entity Relationship Diagram
  2. Getting Started
    1. Prerequisites
    2. Installation
    3. Running
    4. Debugging
  3. Credits

Entity Relationship Diagram

Not all tables and columns are shown*

CBT Crossword - Entity Relationship Diagram

Getting Started

Prerequisites

  1. NodeJS v6+
  2. PostgreSQL
  3. Strongloop Loopback

Installation

  • Create a new PostgreSQL database

  • Activate uuid-ossp extension by typing this query inside your newly created database:

    CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
    

Running

Type the following command inside your cbt-crossword-api local directory:

node --harmony ./server/server.js

For the first time running, there will be a relation "public.role" does not exist error thrown which can be ignored by re-running the server again (CTRL + C to stop).

Debugging

Using Chrome Developer Tools:

node --harmony --inspect ./server/server.js

Using any supported IDE:

node --harmony --debug-brk=<port> ./server/server.js

Credits

  1. LoopBack v3