This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| // imports node modules | |
| const express = require('express'); | |
| const mongojs = require('mongojs'); | |
| const bodyParser = require('body-parser'); | |
| const jwt = require('jsonwebtoken'); | |
| // creates Express app with JSON body parser | |
| const app = new express(); | |
| app.use(bodyParser.json()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http'); | |
| const config = require('./config'); | |
| const log = require('./log'); | |
| const constants = require('./constants'); | |
| const options = { | |
| host: 'localhost', | |
| port: config.httpPort, | |
| timeout: 2000, | |
| method: 'GET', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const http = require('http'); | |
| const config = require('./config'); | |
| const log = require('./log'); | |
| const constants = require('./constants'); | |
| const options = { | |
| host: 'localhost', | |
| port: config.httpPort, | |
| timeout: 2000, | |
| method: 'GET', |
OlderNewer