Programming/Node.js
프런트엔드 개발 관련 PDF 문서
프런트엔드 개발 관련 PDF 문서
2023.09.18프런트엔드 개발 관련 PDF 문서 모음
Electronjs Desktop App. Quick Start
Electronjs Desktop App. Quick Start
2019.01.31Electronjs Desktop App Quick Start ref. doc: https://electronjs.org/ Electron 을 통해 Desktop Application을 만들 수 있다. Requirements : Node.js, NPM, Git # 빠른 시작 저장소 Clone$ git clone https://github.com/electron/electron-quick-start # 저장소로 이동$ cd electron-quick-start # 종속성을 설치하고 실행하세요$ npm install && npm start 실행 결과로 프로그램이 실행되는 것을 확인할 수 있으며,아래와 같이 electron-packager로 exe 등을 만들 수 있다. # for use in npm scrip..
Node.js test on Heroku free hosting
Node.js test on Heroku free hosting
2019.01.30Heroku를 이용한 Node.js 사이트 생성 방법의 설명 ref. doc:: https://devcenter.heroku.com/articles/getting-started-with-nodejs#deploy-the-app heroku 사이트 생성 명령어 샘플소스 다운로드$ git clone https://github.com/heroku/node-js-getting-started.git 헤로쿠 생성$ heroku create > https://nameless-savannah-60379.herokuapp.com/ | https://git.heroku.com/nameless-savannah-60379.git 헤로쿠에 업로드$ git push heroku master 헤로쿠 사이트 1개 생성$ heroku ..
Node.js 기본 코드 2 TCP Server Client
Node.js 기본 코드 2 TCP Server Client
2018.12.06참고 URL : http://ourcstory.tistory.com/67?category=664896 TCP_SERVER.JS /** * http://usejsdoc.org/ */ // http://ourcstory.tistory.com/67?category=664896 var net = require('net'); var server = net.createServer(function(socket){ console.log(socket.address().address + " connected."); // client request socket.on('data', function(data) { console.log('rcv:'+data) }); // client disconnect socket.on('clo..
Node.js 기본 코드
Node.js 기본 코드
2018.12.04참고 블로그: - http://ourcstory.tistory.com/66?category=664896 var http = require('http');http.createServer(function handler(req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World\n');}).listen(1337, '127.0.0.1');console.log('Server running at http://127.0.0.1:1337/'); /* OS 관련 테스트 */var os = require('os');console.log(os.hostname());console.log(os.type());console.log(os.p..