This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 1 commits ▏░░░░░░░░░░░░░░░░░░░░ 0.6% | |
🌆 Daytime 18 commits ██▎░░░░░░░░░░░░░░░░░░ 10.9% | |
🌃 Evening 134 commits █████████████████░░░░ 81.2% | |
🌙 Night 12 commits █▌░░░░░░░░░░░░░░░░░░░ 7.3% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ww |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
http = require('http'); | |
var app = express(); | |
/* localhost:3000에 root글자를 띄운다 | |
// 라우팅 // https://expressjs.com/ko/guide/routing.html | |
// get() 메소드로 라우터를 등록 | |
app.get('/',function(req,res){ | |
res.send('root'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title>Static Website | <%= page %></title> | |
<meta charset="utf-8"> | |
<meta name="active-menu" content="<%= menuId %>"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<!--<link rel="stylesheet" href="./stylesheets/style.css"> --> | |
<!-- 헤드의 스타일 설정 없으면 그냥 글자만 나옴 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<% include ('partials/head') %> | |
</head> | |
<body> | |
<% include ('partials/menu') %> | |
<div class="container-fluid bg-3 text-center"> | |
<h3><%= page %></h3><br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// routerr | |
// module.exports = routerr; // 모듈화 | |
var express = require('express'); | |
var routerr = express.Router(); | |
/* GET home page. */ | |
routerr.get('/', function(req, res, next) { | |
res.render('index', {page:'Home', menuId:'home'}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var logger = require('morgan'); | |
var indexx = require('./routes/index'); | |
var app = express(); | |
// view engine setup | |
app.set('views', path.join(__dirname, 'views')); | |
app.set('view engine', 'ejs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var logger = require('morgan'); | |
var indexx = require('./routes/index'); | |
var app = express(); | |
// view engine setup | |
app.set('views', path.join(__dirname, 'views')); | |
app.set('view engine', 'ejs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var logger = require('morgan'); | |
var indexx = require('./routes/index'); | |
var app = express(); | |
// view engine setup | |
app.set('views', path.join(__dirname, 'views')); | |
app.set('view engine', 'ejs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- EJS stands for Embedded JavaScript --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test</title> | |
<link rel="stylesheet" type="text/css" href="/css/style.css"> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'> |
NewerOlder