김재현

Bootstrap 설치

var express = require('express');
var mysql = require('mysql');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
......@@ -10,6 +11,12 @@ var index = require('./routes/index');
var users = require('./routes/users');
var app = express();
var connection = mysql.createConnection({
host : 'localhost',
user : 'admin',
password : 'admin',
database : 'ossprojectdb'
});
// view engine setup
app.set('views', path.join(__dirname, 'views'));
......
......@@ -5,7 +5,7 @@
"main": "app.js",
"private": true,
"scripts": {
"start": "node ./bin/www",
"start": "nodemon ./bin/www",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
......
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -6,4 +6,8 @@ router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/test', function(req, res, next) {
res.render('test', { title: '맛집 견문록' });
});
module.exports = router;
......
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<link rel='stylesheet' href='/stylesheets/style.css'/>
</head>
<body>
<h1><%= title %></h1>
<p>Welcome to <%= title %></p>
</body>
</html>