Skip to content

Commit

Permalink
Initial set up of bare repository ready for part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kweiberth committed Feb 5, 2016
1 parent 11f43db commit e88d7fd
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
}
}
1 change: 1 addition & 0 deletions client/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

12 changes: 12 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>React Todo List</title>
</head>
<body>
<h1>This is not a React app yet!</h1>
<div id="app"></div>
<script src="bundle.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions components/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@
"version": "1.0.0",
"description": "A simple todo list app built with React, Redux and Webpack",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"serve": "nodemon server/server.js"
},
"repository": {
"type": "git",
"url": "https://github.com/kweiberth/react-todo-list.git"
},
"author": "Kurt Weiberth",
"license": "ISC",
"dependencies": {
"babel-core": "^6.4.5",
"babel-loader": "^6.2.2",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"express": "^4.13.4",
"react": "^0.14.7",
"react-dom": "^0.14.7",
"webpack": "^1.12.13"
}
}
17 changes: 17 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var express = require('express');
var path = require('path');

var app = express();

app.use(express.static('./dist'));

app.use('/', function (req, res) {
res.sendFile(path.resolve('client/index.html'));
});

var port = 3000;

app.listen(port, function(error) {
if (error) throw error;
console.log("Express server listening on port", port);
});
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit e88d7fd

Please sign in to comment.