Skip to content
Permalink
Browse files

Add concurrently for start script

  • Loading branch information...
Burke Holland Burke Holland
Burke Holland authored and Burke Holland committed Sep 11, 2017
1 parent 5a23a13 commit 70d8adf9c4598b7488f2c1340dd40e47477343cc
Showing with 109 additions and 11 deletions.
  1. +102 −4 package-lock.json
  2. +4 −3 package.json
  3. +3 −4 src/App.js

Some generated files are not rendered by default. Learn more.

@@ -5,18 +5,19 @@
"dependencies": {
"body-parser": "^1.17.2",
"cookie-parser": "^1.4.3",
"debug": "~2.6.3",
"express": "^4.15.3",
"jade": "^1.11.0",
"morgan": "^1.8.2",
"debug": "~2.6.3",
"react": "^15.6.1",
"react-dom": "^15.6.1"
},
"devDependencies": {
"react-scripts": "1.0.10"
"react-scripts": "1.0.10",
"concurrently": "^3.5.0"
},
"scripts": {
"start": "react-scripts start",
"start": "concurrently \"react-scripts start\" \"node server/server.js\"",
"build": "react-scripts build && mv build server",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
@@ -3,16 +3,15 @@ import logo from './logo.svg';
import './App.css';

class App extends Component {

constructor() {
super();
this.state = { message: '' }
this.state = { message: '' };
}

componentDidMount() {
fetch('/api/message')
.then(response => response.json())
.then(json => this.setState({ message: json }));
.then(response => response.json())
.then(json => this.setState({ message: json }));
}

render() {

0 comments on commit 70d8adf

Please sign in to comment.
You can’t perform that action at this time.