Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Remchi committed Jun 16, 2016
0 parents commit 9e208c5
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [ "es2015" ]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
node_modules
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "reddice",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"server": "nodemon --watch server --exec babel-node -- server/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-preset-es2015": "^6.9.0",
"nodemon": "^1.9.2"
},
"dependencies": {
"express": "^4.14.0"
}
}
14 changes: 14 additions & 0 deletions server/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<title>Red Dice</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
</head>

<body>
<h1>!Hello World!</h1>
</body>

</html>
10 changes: 10 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import express from 'express';
import path from 'path';

let app = express();

app.get('/*', (req, res) => {
res.sendFile(path.join(__dirname, './index.html'));
});

app.listen(3000, () => console.log('Running on localhost:3000'));

0 comments on commit 9e208c5

Please sign in to comment.