본문 바로가기
  • [성공하는 개발자] - Developer
반응형

분류 전체보기148

[Node] Route Parameter 상세페이지 구현하기 1. 예제 const app = express() app.get('/page/:pageId/:chapterId', function(req, res) { res.send(request.params); }); Express Route 주소를 위 처럼 입력하면 계속 추가 가능하다 /: 사용하면 http://localhost:3000/page/html/WEB 하면 어떠한 값이 설정 되어 있는지 알수 있다. pageId, chapterId 정한 내용의 값을 정해서 설정 할 수 있다. 2. 예제 const app = express() app.get('/page/:pageId/', function(req, res) { res.send(request.params); }); http://localho.. 2021. 5. 17.
탭 클릭 시 아래 내용 변경 See the Pen 탭 클릭 시 아래 내용 변경 by SEIN (@JHEcho) on CodePen. 2021. 5. 14.
FullPage / AOS.js https://alvarotrigo.com/fullPage/ fullPage scroll snapping. Create full screen pages fast and simple Mouse wheel snap to sections. Fast and simple to use. alvarotrigo.com jquery-adapter.html 사용 script html jQuery adaptor You can use fullpage.js as a jQuery plugin! Read the docs for more info! Section 2.1 Section 2.2 Section 2.3 Section 3 Section 4 추가 script https://michalsnik.github.io/aos/ AOS .. 2021. 5. 14.
[Node] Express - Hellow 구동 expressjs.com Express - Node.js web application framework Fast, unopinionated, minimalist web framework for Node.js $ npm install express --save expressjs.com 설치 npm install express --save main.js 모든 소스 주석처리 후 const express = require('express') const app = express() const port = 3000 app.get('/', (req, res) => { res.send('Hello World!') }) app.listen(port, () => { console.log(`Example app listen.. 2021. 5. 10.
[Node] 실습 환경 및 구동 github.com/web-n/Nodejs 실습자료 설치 및 구동 package.json 안에 있는 dependencies 항목들을 npm이 다운을 받는다 npm install 실행하면 node_modules 생성 된다. pm2 설치 되었다면 안되었다면 아래 링크로 가서 설치하자 https://sein-jh.tistory.com/31?category=992990 NPM PM2 pm2.keymetrics.io/ PM2 - Home Advanced process manager for production Node.js applications. Load balancer, logs facility, startup script, micro service management, at a glance. pm2.keyme.. 2021. 5. 10.
페이지 넘기는 효과 www.turnjs.com/ JS 파일 있어야 가능합니다. 아래 다운로드 링크 2021. 5. 4.
반응형