Lee SeJin

early phase setting

1 +node_modules
2 +# Logs
3 +logs
4 +*.log
5 +npm-debug.log*
6 +yarn-debug.log*
7 +yarn-error.log*
8 +lerna-debug.log*
9 +
10 +# Diagnostic reports (https://nodejs.org/api/report.html)
11 +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 +
13 +# Runtime data
14 +pids
15 +*.pid
16 +*.seed
17 +*.pid.lock
18 +
19 +# Directory for instrumented libs generated by jscoverage/JSCover
20 +lib-cov
21 +
22 +# Coverage directory used by tools like istanbul
23 +coverage
24 +*.lcov
25 +
26 +# nyc test coverage
27 +.nyc_output
28 +
29 +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 +.grunt
31 +
32 +# Bower dependency directory (https://bower.io/)
33 +bower_components
34 +
35 +# node-waf configuration
36 +.lock-wscript
37 +
38 +# Compiled binary addons (https://nodejs.org/api/addons.html)
39 +build/Release
40 +
41 +# Dependency directories
42 +node_modules/
43 +jspm_packages/
44 +
45 +# Snowpack dependency directory (https://snowpack.dev/)
46 +web_modules/
47 +
48 +# TypeScript cache
49 +*.tsbuildinfo
50 +
51 +# Optional npm cache directory
52 +.npm
53 +
54 +# Optional eslint cache
55 +.eslintcache
56 +
57 +# Microbundle cache
58 +.rpt2_cache/
59 +.rts2_cache_cjs/
60 +.rts2_cache_es/
61 +.rts2_cache_umd/
62 +
63 +# Optional REPL history
64 +.node_repl_history
65 +
66 +# Output of 'npm pack'
67 +*.tgz
68 +
69 +# Yarn Integrity file
70 +.yarn-integrity
71 +
72 +# dotenv environment variables file
73 +.env
74 +.env.test
75 +
76 +# parcel-bundler cache (https://parceljs.org/)
77 +.cache
78 +.parcel-cache
79 +
80 +# Next.js build output
81 +.next
82 +out
83 +
84 +# Nuxt.js build / generate output
85 +.nuxt
86 +dist
87 +
88 +# Gatsby files
89 +.cache/
90 +# Comment in the public line in if your project uses Gatsby and not Next.js
91 +# https://nextjs.org/blog/next-9-1#public-directory-support
92 +# public
93 +
94 +# vuepress build output
95 +.vuepress/dist
96 +
97 +# Serverless directories
98 +.serverless/
99 +
100 +# FuseBox cache
101 +.fusebox/
102 +
103 +# DynamoDB Local files
104 +.dynamodb/
105 +
106 +# TernJS port file
107 +.tern-port
108 +
109 +# Stores VSCode versions used for testing VSCode extensions
110 +.vscode-test
111 +
112 +# yarn v2
113 +.yarn/cache
114 +.yarn/unplugged
115 +.yarn/build-state.yml
116 +.yarn/install-state.gz
117 +.pnp.*
118 +
119 +package-lock.json
120 +uploads
121 +static
122 +build
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "git.ignoreLimitWarning": true
3 +}
...\ No newline at end of file ...\ No newline at end of file
1 +# dev-profile
2 +Website for developer with Node
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "name": "dev-profile",
3 + "version": "1.0.0",
4 + "description": "2021 OSS Project Using node!",
5 + "scripts": {
6 + "dev:server": "nodemon --exec babel-node src/server"
7 + },
8 + "repository": {
9 + "type": "git",
10 + "url": "http://khuhub.khu.ac.kr/2018102216/dev-profile.git"
11 + },
12 + "author": "Lee SeJin",
13 + "license": "MIT",
14 + "dependencies": {
15 + "@babel/core": "^7.14.0",
16 + "@babel/node": "^7.13.13",
17 + "@babel/preset-env": "^7.14.1",
18 + "express": "^4.17.1",
19 + "nodemon": "^2.0.7",
20 + "pug": "^3.0.2"
21 + },
22 + "devDependencies": {
23 + "eslint-config-prettier": "^8.3.0",
24 + "eslint-plugin-prettier": "^3.4.0",
25 + "prettier": "^2.2.1"
26 + }
27 +}
1 +{
2 + "presets": ["@babel/preset-env"]
3 +}
...\ No newline at end of file ...\ No newline at end of file
1 +module.exports = {
2 + env: {
3 + browser: true,
4 + es2021: true,
5 + node: true,
6 + },
7 + extends: [
8 + 'airbnb-base', "plugin:prettier/recommended"
9 + ],
10 + parserOptions: {
11 + ecmaVersion: 12,
12 + sourceType: 'module',
13 + },
14 + rules: {
15 + "prettier/prettier": [
16 + 'error',
17 + {
18 + endOfLine: 'auto',
19 + }
20 + ],
21 + "no-console":"off",
22 + "spaced-comment":"off",
23 + "no-else-return":"off"
24 + }
25 + };
26 +
...\ No newline at end of file ...\ No newline at end of file
1 +import path from "path";
2 +import express from "express";
3 +
4 +
5 +const PORT = 5500;
6 +const app = express();
7 +app.set("view engine","pug");
8 +app.set("views", path.join(__dirname, "views"));
9 +app.use(express.static(path.join(__dirname, "static")));
10 +app.get("/", (req,res) => res.render("home"));
11 +
12 +
13 +
14 +const handleListening = () => console.log(`✅ Server running : http://localhost:${PORT}`);
15 +
16 +app.listen(PORT, handleListening);
File mode changed
1 +extends layouts/main
2 +
3 +block content
4 + h1 Welcome
...\ No newline at end of file ...\ No newline at end of file
File mode changed
1 +
2 +doctype html
3 +html
4 + head
5 + link(rel="stylesheet", href="https://use.fontawesome.com/releases/v5.15.2/css/all.css", integrity="sha384-vSIIfh2YWi9wW0r9iZe7RJPrKwp6bG+s9QZMoITbCckVJqGCCRhc+ccxNcdpHuYu", crossorigin="anonymous")
6 + title #{pageTitle} | #{siteName}
7 + link(rel="stylesheet", href="/static/main.css")
8 + body
9 + include ../partials/header
10 + main
11 + block content
12 + include ../partials/footer
13 + //- script(src="/static/main.js")
...\ No newline at end of file ...\ No newline at end of file
File mode changed
1 +footer.footer
2 + .footer__icon
3 + i.fas.fa-code-branch
4 + span.footer__text dev-profile #{new Date().getFullYear()} ©
...\ No newline at end of file ...\ No newline at end of file
File mode changed