Skip to content

Commit 4781d1e

Browse files
committed
commiting all the files
1 parent f32111d commit 4781d1e

39 files changed

+14087
-1
lines changed

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# Compiled binary addons (http://nodejs.org/api/addons.html)
20+
build/Release
21+
22+
# Dependency directory
23+
# Commenting this out is preferred by some people, see
24+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25+
node_modules
26+
27+
# Users Environment Variables
28+
.lock-wscript

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
"# dashboard_hackathon"
1+
express-sendfile
2+
================
3+
4+
Code for the tutorial by @sevilayha: Use ExpressJS to Deliver HTML Files

index2.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Sample Site</title>
6+
7+
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
8+
<style>
9+
body { padding-top:50px; }
10+
</style>
11+
</head>
12+
<body>
13+
14+
<div class="container">
15+
<div class="jumbotron">
16+
<h1>res.sendFile() Works!</h1>
17+
</div>
18+
</div>
19+
20+
</body>
21+
</html>

package.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "express-sendfile",
3+
"version": "0.0.0",
4+
"description": "Demo of using res.sendFile()",
5+
"main": "server.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git://github.com/scotch-io/express-sendfile"
12+
},
13+
"author": "Chris Sevilleja (scotch.io)",
14+
"license": "MIT",
15+
"bugs": {
16+
"url": "https://github.com/scotch-io/express-sendfile/issues"
17+
},
18+
"dependencies": {
19+
"express": "~4.10.2"
20+
}
21+
}

public/angularScripts/app.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
var app=angular.module("app",['controllers',"ngRoute"]);
3+
4+
app.config(function($routeProvider,$locationProvider){
5+
$routeProvider.
6+
when("/",{
7+
redirectTo:"/home"
8+
})
9+
.when("/home",{
10+
templateUrl:"./partials/home.html",
11+
controller:"home"
12+
})
13+
.when("/reports",{
14+
templateUrl:"./partials/reports_view.html",
15+
controller:"reports"
16+
})
17+
.when("/report/pmd",{
18+
templateUrl:"./partials/pmd_view.html",
19+
controller:"pmdController"
20+
})
21+
.when("/report/jmeter",{
22+
templateUrl:"./partials/jmeter_view.html",
23+
controller:"pmdController"
24+
})
25+
.when("/portfolio",{
26+
templateUrl:"./partials/index.html",
27+
controller:"portfolio"
28+
})
29+
.otherwise({
30+
redirectTo:"/home"
31+
})
32+
});

0 commit comments

Comments
 (0)