본문 바로가기
IT/Nodejs

Node.js 기본 정보 링크

by DOSGamer 2022. 9. 20.
반응형

설치방법

Best Practice

goldbergyoni/nodebestpractices
Follow us on Twitter! @nodepractices 📗 Comprehensive 10 hours course on Node.js testing & quality best practices Read in a different language: CN , BR , RU ( ES, FR, HE, KR and TR in progress!) 🎉 Node.js best practices reached 40k stars: Thank you to each and every contributor who helped turning this project into what it is today!
https://github.com/goldbergyoni/nodebestpractices

Code Style

variables, properties and function names : lowerCamelCase class names : UpperCamelCase constants : UPPERCASE

Configuration

Where Do I Put Configurations? - A Simple Guide in Node.JS
tl;dr: Check out the code repo at https://github.com/teamzerolabs/config-service-reference . Most likely yes. As long as your program is connecting or making calls to remote endpoints, it needs to get the security credentials from somewhere.
https://medium.com/teamzerolabs/where-do-i-put-configurations-a-simple-guide-in-node-js-d74650a763eb

환경변수 관리 방법

Node.js 기반에서 환경변수 사용하기 (dotenv, cross-env)
엄밀한 정의는 아니지만, 환경변수는 특정 process를 위한 key-value 형태의 변수라고 할 수 있습니다. 예를 들면, Java 기반으로 개발을 하기 위해서 JDK를 설치할 때에 환경변수 경로를 설정해줘야 하는 경우가 있겠네요. Node.js 기반이라면 process.env[key] 형태로 사용할 수 있습니다. process.env.NODE_ENV 를 떠올리셨다면 맞아요. 이미 익숙하게 사용해오던, Node.js 기반에서의 대표적인 환경변수 중 하나이죠.
https://velog.io/@public_danuel/process-env-on-node-js

NodeJS 게시판

A MEAN Blog
Node.js, MEAN stack, Angular 강의, 게임 제작 프로그래밍 블로그입니다
https://www.a-mean-blog.com/ko/blog

Axios 가이드

https://yamoo9.github.io/axios/


Uploaded by N2T

반응형