Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo committed Jan 11, 2016
0 parents commit 005aaba
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .babelrc
@@ -0,0 +1,7 @@
{
"presets": [
"es2015",
"stage-0",
"react"
]
}
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules/
npm-debug.log
Empty file added bundle.js
Empty file.
10 changes: 10 additions & 0 deletions index.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>Timer App</title>
</head>
<body>
<div id="root"></div>
<script src="./bundle.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions nodemon.json
@@ -0,0 +1,3 @@
{
"ignore": ["bundle.js"]
}
32 changes: 32 additions & 0 deletions package.json
@@ -0,0 +1,32 @@
{
"name": "example-fp-demo",
"version": "1.0.0",
"description": "",
"scripts": {
"build": "./node_modules/.bin/browserify src/index.js -t babelify --outfile bundle.js",
"watch": "./node_modules/.bin/nodemon --exec npm run build",
"start": "./node_modules/.bin/http-server"
},
"author": "Jack Hsu <jack.hsu@gmail.com> (http://jaysoo.ca/)",
"license": "ISC",
"dependencies": {
"daggy": "0.0.1",
"data.either": "^1.3.0",
"data.maybe": "^1.2.1",
"pointfree-fantasy": "^0.1.3",
"ramda": "^0.19.0",
"react": "^0.14.5",
"react-dom": "^0.14.5"
},
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"http-server": "^0.8.5",
"nodemon": "^1.8.1"
}
}
23 changes: 23 additions & 0 deletions src/App.js
@@ -0,0 +1,23 @@
import React, {
Component
} from 'react';

class App extends Component {
searchClicked() {
const { value } = this.refs.searchInput;
}

render() {
return (
<div>
<input ref="searchInput" placeholder="Search for videos"/>
<button onClick={() => this.searchClicked()}>
Search
</button>
</div>
);
}
}

export default App;

2 changes: 2 additions & 0 deletions src/config.js
@@ -0,0 +1,2 @@
export const API_KEY = 'AIzaSyBn6VAt-hqQEowrEouhsL_k7RqJ2zSsoNI';

This comment has been minimized.

Copy link
@m-lautenbach

m-lautenbach Feb 28, 2017

Real one?

This comment has been minimized.

Copy link
@jaysoo

jaysoo Feb 28, 2017

Author Owner

Yeah, it's a free one so it's rate limited.


7 changes: 7 additions & 0 deletions src/index.js
@@ -0,0 +1,7 @@
import 'babel-polyfill';
import React, { Component} from 'react';
import ReactDOM from 'react-dom';
import config from './config';
import App from './app';

ReactDOM.render(<App/>, document.getElementById('root'));

0 comments on commit 005aaba

Please sign in to comment.