Web

    [#3] SSH를 이용해 GITHUB 연결

    Github SSH 연결 관련 공식 문서 📒SSH 연결하기 4줄 요약 1. SSH KEY를 만든다. 2. SSH Agent를 Background에 켠다. 3. SSH Private Key를 SSH-AGENT에 넣는다. 4. 생성된 SSH Public Key를 3rd Party(github)에 준다. 📒1. SSH 연결 확인하기 $ ls -a ~/.ssh id_rsa와 id_rsa.pub 파일이 있다면 이미 생성되어 있는 것. id_rsa는 private key, id_rsa.pub은 public key. 📒2. SSH KEY 만들기 $ ssh-keygen -t ed25519 -C "your_email@example.com" 📒3. SSH Agent를 Background에 켠다. $ eval "$(ssh-..

    [#2] MongoDB 연결, Model & Schema

    📒MongoDB 연결 MongoDB 로그인 (https://cloud.mongodb.com/) New Project, free tire, M0 선택 (무료) Cluster 생성 Database Access에서 User 생성 📒Model & Schema Model: Schema를 감싸주는 역할. Schema: Data에 대한 정보. ex) 타입, 이름, 작성자 등등 const mongoose = require('mongoose'); const userSchema =mongooose.Schema({ name: { type: String, maxlength: 50 }, email: { type: String, trim: true, //사이 공백을 없애줌 unique: 1 }, password: { type: ..

    [#1] Node JS & Express JS로 Back-end 시작하기

    📒Node JS와 Express JS란? > Node JS: Javascript를 인터넷 브라우저(크롬 등)가 아닌 Server side에서도 사용할 수 있도록 해주는 언어. > Express JS: Node Js를 쉽게 이용할 수 있도록 해주는 프레임워크. 📒Back-end 서버 시작하기 Node JS 설치하기 [cmd창] > mkdir boiler-plate > npm init -> vscode에서 열면 package.json파일 확인 가능 > index.js 파일 생성 Express JS 설치하기 > npm install express --save "dependencies": { "express": "^4.17.1" } > 공식문서의 Hello World 코드 입력 후 const express = ..