Skip to content
This repository was archived by the owner on Nov 17, 2017. It is now read-only.

Commit f7263e9

Browse files
committed
Serve dashboard with node.
1 parent 5b99b31 commit f7263e9

File tree

6 files changed

+64
-20
lines changed

6 files changed

+64
-20
lines changed

.bowerrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "app/bower_components"
3+
}

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea/
2-
bower_components/
2+
bower_components/
3+
node_modules/

app/index.html

+18-18
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
<head lang="en">
44
<meta charset="UTF-8">
55
<title>InEngine.NET Dashboard</title>
6-
<link rel="stylesheet" href="../bower_components/bootswatch/paper/bootstrap.min.css" />
7-
<link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.css" />
8-
<link rel="stylesheet" href="../bower_components/eeh-navigation/dist/eeh-navigation.css" />
9-
<link rel="stylesheet" href="../bower_components/fullcalendar/fullcalendar.css" />
6+
<link rel="stylesheet" href="bower_components/bootswatch/paper/bootstrap.min.css" />
7+
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.css" />
8+
<link rel="stylesheet" href="bower_components/eeh-navigation/dist/eeh-navigation.css" />
9+
<link rel="stylesheet" href="bower_components/fullcalendar/fullcalendar.css" />
1010
<link rel="stylesheet" href="app.css" />
1111
<link rel="stylesheet" href="health-status/health-status.css" />
1212
</head>
1313
<body>
1414
<ui-view></ui-view>
1515

16-
<script src="../bower_components/jquery/dist/jquery.js"></script>
17-
<script src="../bower_components/moment/moment.js"></script>
18-
<script src="../bower_components/later/later.js"></script>
19-
<script src="../bower_components/angular/angular.js"></script>
20-
<script src="../bower_components/angular-resource/angular-resource.js"></script>
21-
<script src="../bower_components/angular-moment/angular-moment.js"></script>
22-
<script src="../bower_components/angular-translate/angular-translate.js"></script>
23-
<script src="../bower_components/angular-ui-calendar/src/calendar.js"></script>
24-
<script src="../bower_components/angular-ui-router/release/angular-ui-router.js"></script>
25-
<script src="../bower_components/angular-bootstrap/ui-bootstrap.js"></script>
26-
<script src="../bower_components/eeh-navigation/dist/eeh-navigation.js"></script>
27-
<script src="../bower_components/eeh-navigation/dist/eeh-navigation.tpl.js"></script>
28-
<script src="../bower_components/eeh-inengine-api/src/eeh-inengine-api.js"></script>
29-
<script src="../bower_components/fullcalendar/fullcalendar.min.js"></script>
16+
<script src="bower_components/jquery/dist/jquery.js"></script>
17+
<script src="bower_components/moment/moment.js"></script>
18+
<script src="bower_components/later/later.js"></script>
19+
<script src="bower_components/angular/angular.js"></script>
20+
<script src="bower_components/angular-resource/angular-resource.js"></script>
21+
<script src="bower_components/angular-moment/angular-moment.js"></script>
22+
<script src="bower_components/angular-translate/angular-translate.js"></script>
23+
<script src="bower_components/angular-ui-calendar/src/calendar.js"></script>
24+
<script src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>
25+
<script src="bower_components/angular-bootstrap/ui-bootstrap.js"></script>
26+
<script src="bower_components/eeh-navigation/dist/eeh-navigation.js"></script>
27+
<script src="bower_components/eeh-navigation/dist/eeh-navigation.tpl.js"></script>
28+
<script src="bower_components/eeh-inengine-api/src/eeh-inengine-api.js"></script>
29+
<script src="bower_components/fullcalendar/fullcalendar.min.js"></script>
3030

3131
<script src="app.js"></script>
3232
<script src="home/home.js"></script>

bower.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "InEngine.NET Dashboard",
2+
"name": "InEngine.NET-Dashboard",
33
"version": "0.0.0",
44
"authors": [
55
"Ethan Hann <[email protected]>"
@@ -21,5 +21,9 @@
2121
"eeh-inengine-api": "~2.0.0-beta5",
2222
"angular-ui-calendar": "~0.8.1",
2323
"later": "*"
24+
},
25+
"resolutions": {
26+
"angular": "1.3.9",
27+
"jquery": "~2.x"
2428
}
2529
}

index.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var express = require('express');
2+
var compression = require('compression');
3+
var serveStatic = require('serve-static');
4+
var app = express();
5+
app.use(compression());
6+
app.use(serveStatic(__dirname + '/app', {'index': ['index.html']}));
7+
app.listen(process.env.PORT || 3000);

package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "InEngine.NET-Dashboard",
3+
"version": "0.0.0",
4+
"description": "A web front-end, built with AngularJS, for the InEngine.NET Web API.",
5+
"main": "index.js",
6+
"scripts": {
7+
"postinstall": "bower install",
8+
"start": "node index.js",
9+
"test": "echo \"Error: no test specified\" && exit 1"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/ethanhann/InEngine.NET-Dashboard.git"
14+
},
15+
"author": "Ethan Hann <[email protected]>",
16+
"license": "MIT",
17+
"bugs": {
18+
"url": "https://github.com/ethanhann/InEngine.NET-Dashboard/issues"
19+
},
20+
"homepage": "https://github.com/ethanhann/InEngine.NET-Dashboard",
21+
"dependencies": {
22+
"compression": "^1.3.0",
23+
"express": "^4.11.1",
24+
"serve-static": "^1.8.1"
25+
},
26+
"devDependencies": {
27+
"bower": "^1.3.12"
28+
}
29+
}

0 commit comments

Comments
 (0)