분류 전체보기
-
06/02 백준 코딩테스트 2839 설탕 배달코딩테스트 2021. 6. 2. 01:26
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); int tmp = n / 5; int count5kg; int count3kg; bool bol = true; for (int i = tmp; i >= 0; i--) { count5kg = i; int a = n - (5 * count5kg); count3kg = a / 3; int b = count5..
-
06/01 node.js 서버구축연습 4개발일지/팀GC 2021. 6. 1. 16:22
익스프레스 사용해서 웹서버 만들기 라우터 개념 찾아보기 get방식, post방식 라우터 만들기 mysql사용해서 커넥션 하기 쿼리 날려서 서버에만 출력 (클라는 200) 1. node.js express란 node.js의 불편한 점을 개선한 프레임워크 설치법 npm install express --save 참고 https://rain2002kr.tistory.com/337 [Node js express] 노드 JS Express 정리글 훈츠의 블로그 입니다. 안녕하세요. 훈츠입니다. 노드JS Express 정리해 봅니다. 글 목록 노드 JS express 간단 소개 및 설치방법 [ 윈도우, 리눅스 ] 노드 JS express 기본 시작 페이지 [ 원리 파악 ] 시작 rain2002kr.tistory.co..
-
06/01 node.js게임 웹 프로그래밍/node.js 2021. 6. 1. 13:06
자바스크립트 https://developer.mozilla.org/ko/docs/Web/JavaScript/Guide/Introduction Introduction - JavaScript | MDN 이 장은 JavaScript를 소개하고 그 일부 기초 개념을 다룹니다. developer.mozilla.org http 한번 요청 한번 응답 상태를 저장하지 않음 uri사용 요청 메서드(GET, POST 등) https://joshua1988.github.io/web-development/http-part1/ 프런트엔드 개발자가 알아야하는 HTTP 프로토콜 Part 1 API 데이터 요청을 위해 꼭 알아야 하는 HTTP 프로토콜의 정의, HTTP Status Code, HTTP Methods 등 joshua1..
-
06/01 node.js 서버구축연습 3개발일지/팀GC 2021. 6. 1. 10:39
POST방식으로 아이디와 비밀번호를 받아 DB에 등록 GET방식으로 아이디를 받아 DB정보 취득 let http = require('http'); let url = require('url'); let querystring = require('querystring'); const database = require('./config/database'); let db_config = require(__dirname + '/config/database.js'); let conn = db_config.init(); let resResult; function bin2string(array){ var result = ""; for(var i = 0; i < array.length; ++i){ result+= (Str..
-
05/31 node.js 서버구축연습 2개발일지/팀GC 2021. 5. 31. 16:44
node.js 서버에서 MariaDB에서 데이터 취득 후 콘솔창, 브라우저에 데이터 출력하기 1. MariaDB설치 https://downloads.mariadb.org/ Downloads - MariaDB downloads.mariadb.org 설치 참고 링크 https://javaplant.tistory.com/31 윈도우10 MariaDB 마리아DB 설치방법 윈도우10 MariaDB 마리아DB 설치방법 ■ Windows용 MariaDB 다운로드 오늘날짜 2018년 05월 13일 기준 최신 Stable버젼인 MariaDB 10.2.14 버젼 다운로드 https://downloads.mariadb.org/mariadb/10.2.14/ 32/6.. javaplant.tistory.com 2. 데이터베이스..
-
05/28 node.js 서버구축연습 1개발일지/팀GC 2021. 5. 28. 18:07
Hello World! 출력 1. workspace생성 \workspace\nodejs\helloworld 2. app.js 생성 app.js let http = require('http'); //request, response let server = http.createServer((req, res)=>{ res.write("hello world!"); res.end(); }); server.listen(8080, ()=>{ console.log("서버 시작되었습니다 포트: 8080"); }); 서버 json파일 생성 npm init 3. node.js 서버 실행 visual studio Code의 터미널에서 코드가 있는 디렉토리로 이동 cd C:\Users\TJOEUN\Documents\workspa..