Merge pull request #7 from ayshiff/master

Update start script
pull/9/head
Raphael Cerveaux 2018-05-11 13:57:47 +01:00 committed by GitHub
commit 484d13872d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11984 additions and 4 deletions

4
app/package.json Normal file
View File

@ -0,0 +1,4 @@
{
"license": "UNLICENSED",
"private": true
}

View File

@ -8,7 +8,6 @@
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import logo from './logo.svg';
import axios from 'axios';
import './App.css';
class App extends Component {
@ -14,7 +14,10 @@ class App extends Component {
}
fetchOptions() {
axios.get('https://jsonplaceholder.typicode.com/posts/1')
.then(((response) => {
console.log(response)
}))
}
componentWillMount(){

View File

@ -2,6 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();

11973
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@
"dev": "encore dev",
"watch": "encore dev --watch",
"build": "encore production",
"start": "react-scripts start"
"start": "cd app && node ../node_modules/react-scripts/scripts/start.js"
},
"dependencies": {
"axios": "^0.18.0",