Showing
14 changed files
with
36 additions
and
1 deletions
1 | var express = require('express'); | 1 | var express = require('express'); |
2 | +var mysql = require('mysql'); | ||
2 | var path = require('path'); | 3 | var path = require('path'); |
3 | var favicon = require('serve-favicon'); | 4 | var favicon = require('serve-favicon'); |
4 | var logger = require('morgan'); | 5 | var logger = require('morgan'); |
... | @@ -10,6 +11,12 @@ var index = require('./routes/index'); | ... | @@ -10,6 +11,12 @@ var index = require('./routes/index'); |
10 | var users = require('./routes/users'); | 11 | var users = require('./routes/users'); |
11 | 12 | ||
12 | var app = express(); | 13 | var app = express(); |
14 | +var connection = mysql.createConnection({ | ||
15 | + host : 'localhost', | ||
16 | + user : 'admin', | ||
17 | + password : 'admin', | ||
18 | + database : 'ossprojectdb' | ||
19 | +}); | ||
13 | 20 | ||
14 | // view engine setup | 21 | // view engine setup |
15 | app.set('views', path.join(__dirname, 'views')); | 22 | app.set('views', path.join(__dirname, 'views')); | ... | ... |
... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
5 | "main": "app.js", | 5 | "main": "app.js", |
6 | "private": true, | 6 | "private": true, |
7 | "scripts": { | 7 | "scripts": { |
8 | - "start": "node ./bin/www", | 8 | + "start": "nodemon ./bin/www", |
9 | "test": "echo \"Error: no test specified\" && exit 1" | 9 | "test": "echo \"Error: no test specified\" && exit 1" |
10 | }, | 10 | }, |
11 | "repository": { | 11 | "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
No preview for this file type
public/javascripts/bootstrap.js
0 → 100644
This diff is collapsed. Click to expand it.
public/javascripts/npm.js
0 → 100644
1 | +// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. | ||
2 | +require('../../js/transition.js') | ||
3 | +require('../../js/alert.js') | ||
4 | +require('../../js/button.js') | ||
5 | +require('../../js/carousel.js') | ||
6 | +require('../../js/collapse.js') | ||
7 | +require('../../js/dropdown.js') | ||
8 | +require('../../js/modal.js') | ||
9 | +require('../../js/tooltip.js') | ||
10 | +require('../../js/popover.js') | ||
11 | +require('../../js/scrollspy.js') | ||
12 | +require('../../js/tab.js') | ||
13 | +require('../../js/affix.js') | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
public/stylesheets/bootstrap.css
0 → 100644
This diff could not be displayed because it is too large.
public/stylesheets/bootstrap.css.map
0 → 100644
This diff could not be displayed because it is too large.
public/stylesheets/bootstrap.min.css
0 → 100644
This diff could not be displayed because it is too large.
... | @@ -6,4 +6,8 @@ router.get('/', function(req, res, next) { | ... | @@ -6,4 +6,8 @@ router.get('/', function(req, res, next) { |
6 | res.render('index', { title: 'Express' }); | 6 | res.render('index', { title: 'Express' }); |
7 | }); | 7 | }); |
8 | 8 | ||
9 | +router.get('/test', function(req, res, next) { | ||
10 | + res.render('test', { title: '맛집 견문록' }); | ||
11 | +}); | ||
12 | + | ||
9 | module.exports = router; | 13 | module.exports = router; | ... | ... |
-
Please register or login to post a comment