김한준

폴더별로 구분하고 정적문추가

Showing 1 changed file with 10 additions and 5 deletions
1 var express = require('express'); 1 var express = require('express');
2 +var path = require('path');
2 var app = express(); 3 var app = express();
4 +app.use(express.static(path.join(__dirname,'public')));
5 +app.use(express.static(path.join(__dirname,'css')));
6 +app.use(express.static(path.join(__dirname,'js')));
7 +
8 +
3 9
4 -app.get('/',function (req,res) {
5 - res.send('로또 번호 생성 사이트 제작중입니다.');
6 -});
7 10
8 -app.listen(3000, function(){ 11 +
9 - console.log('Server On!'); 12 +app.listen(3000,function(){
13 + console.log('Server On');
10 }); 14 });
15 +
......