Commit a81e7466 authored by Porter Libby's avatar Porter Libby
Browse files

npm boilerplate

parent 1de5fff0
const express = require('express');
var path = require('path');
const app = express();
app.set('view engine', 'ejs');
app.get('/', function(req, res) {
res.render("index",{
})
});
app.use(express.static(__dirname + '/public'));
app.listen(process.env.PORT || 3000, function(){
console.log("Express server listening on port %d in %s mode", this.address().port, app.settings.env);
});
\ No newline at end of file
{
"name": "datavis",
"version": "1.0.0",
"description": "A tool for visualizing the data collected from the IFS Earlham trip",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/probably-not-porter/datavis.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/probably-not-porter/datavis/issues"
},
"homepage": "https://github.com/probably-not-porter/datavis#readme"
}
<!DOCTYPE html>
<html lang="en" dir="ltr">
<meta name="viewport" >
<head>
<script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/main.js"></script>
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment