Skip to content

Commit

Permalink
fix server
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhleung committed Sep 10, 2017
1 parent 006f04c commit 8655af1
Show file tree
Hide file tree
Showing 5 changed files with 1,086 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "airbnb"
}
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,12 @@
},
"engines": {
"node": "7.2.1"
},
"devDependencies": {
"eslint": "4.3.0",
"eslint-config-airbnb": "^15.1.0",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-jsx-a11y": "5.1.1",
"eslint-plugin-react": "7.1.0"
}
}
2 changes: 0 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const express = require('express');
const path = require('path');
const _get = require('lodash/get');
const { spawn } = require('child_process');
const bodyParser = require('body-parser');
const logger = require('morgan');

Expand Down
3 changes: 3 additions & 0 deletions server/routes.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const _get = require('lodash/get');
const { spawn } = require('child_process');

function routes(io) {
function pythonController(req, res) {
// Use lodash so no error is thrown if req.body is undefined
Expand Down
Loading

0 comments on commit 8655af1

Please sign in to comment.