diff --git a/README.md b/README.md index 5e29a15..57c12b6 100755 --- a/README.md +++ b/README.md @@ -5,4 +5,24 @@ This repository hold codebase for the REST API developed for Cassandra using Loo ## Details -Will be added later. +Follow the guidelines given below to use the API. + +1. Install Java. + +2. Install nodejs and npm. + +3. Install docker daemon. + +4. Install cassandra on your system as a service or as a docker container. I will use it as a docker container: + +```bash +sudo docker run --net host cassandra:3.11.6 +``` + +5. Install mysql on your system as a service or as a docker container. I will use it as a docker container: + +```bash +sudo docker run --net host -e MYSQL_ROOT_PASSWORD=an10 mysql:5.7 +``` + +6. \ No newline at end of file diff --git a/server/errorHandlingFunctions.js b/server/errorHandlingFunctions.js index 0e0ac8f..0fd4ecd 100755 --- a/server/errorHandlingFunctions.js +++ b/server/errorHandlingFunctions.js @@ -3,10 +3,6 @@ */ 'use strict'; - - - - var methods = { /* * It will return an object containing the property missing error messages @@ -124,5 +120,4 @@ function removeWhiteSpacesFromInside(value) { return value.replace(/ /g, "") } - module.exports = methods; diff --git a/server/server.js b/server/server.js index fd7ce02..fc503ae 100755 --- a/server/server.js +++ b/server/server.js @@ -17,10 +17,6 @@ app.start = function() { }); }; - - - - // Bootstrap the application, configure models, datasources and middleware. // Sub-apps like REST API are mounted via boot scripts. boot(app, __dirname, function(err) {