Git Product home page Git Product logo

boiler-plate's Introduction

boiler-plate

Stack

frontend: React backend: Node.js, MongoDB

실행방법

서버와 클라이언트 동시실행: npm run dev

배운점

  1. redux를 사용하여 상태관리 Store안에 state을 저장 dispatch(action)을 사용해서 state를 변경 할 수 있다. action은 객체 형태이어야 한다. promise형식, function 형태로 받을 때도 있다. redux는 객체 형식으로만 받을 수 있는데 형식이 다르기 때문에 redux promise와 redux thunk를 사용해서 두가지 형태로 받을 수 있도록 도와준다.
  • redux promise: redux한테 promise 받는 법을 알려준다.
  • redux thunk: redux한테 function을 받는 법을 알려준다.
  1. nodemon을 사용하여 보다 편하게 개발환경 실행

몽고DB

  1. Model : Schema를 감싸주는 역할을 한다.
  2. Schema: 정보를 지정해 줄 수 있는 역할
  3. SSH: 시큐릿 쉘
  4. Body-parser: client의 정보들을 서버에서 받게 도와주는 역할
  5. nodemon :
  6. 환경변수 process.env.NODE_ENV
    • Local 환경에서 개발:
    • Deploy환경에서 개발:
  7. bcrypt: 데이터 암호화 도와주는 라이브러리
  8. cookie-parser: 쿠키에 암호를 저장 할 수 있게 도와주는 라이브러리
  9. toString() 과 hextoString()의 차이:
  • `toHexString()' : ### toHexString()

Return the ObjectID id as a 24byte hex string representation.

해석해보면 ObjectID 형태의 id를 24바이트의 hex 문자열로 바꾸어 리턴해주는 함수이다.

사실, 코드를 뜯어보면 toString()toHexString()을 리턴한다.

boiler-plate's People

Contributors

hun-se avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.