Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.16 KB

INSTRUCTIONS.md

File metadata and controls

36 lines (31 loc) · 1.16 KB

Setup Instructions

To get the web service up and running, please follow the instructions bellow.

MySql Database Setup

  1. Download and install MySql. Run MySql instance at localhost.
  1. Create database 'AdaSupport' with the follow statement:
CREATE DATABASE AdaSupport;
  1. Create table 'messages' with the follow statement:
CREATE TABLE messages (
	id int NOT NULL AUTO_INCREMENT,
	conversation_id varchar(255) NOT NULL,
	sender varchar(255) NOT NULL,
	message varchar(255) NOT NULL,
	created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
	CONSTRAINT PK_messages PRIMARY KEY (id, conversation_id)
);

RestFul Web Service Setup

  1. Download and install node.js.
  1. Run the following command to install dependencies: npm install
  2. Run the following command to start the web service: npm start

Run Postman Test Collection

  1. Run the following command to run tests: npm test

Note: The test collection can also be run through the postman application. https://www.getpostman.com/