Skip to content

rouddyNeo/node-api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB 설치(Mac)

  • HomeBrew 설치 : https://brew.sh/index_ko.html

  • mongoDB 설치 : 설치, 폴더 생성, 권한 부여

    brew install mongodb
    sudo mkdir –p /data/db
    sudo chown  맥사용자아이디 /data/db

  • mongoDB 실행: 별도 터미널을 열어 아래 명령어를 입력, 종료하고 싶을 때는 Ctrl+C를 입력

    mongod  
    

API 서버 실행하기

npm install
npm run start

API 테스트 하기

testapi.http 파일을 이용하여 테스트

API 실행 결과

responses 폴더에 각 상황에 대한 결과가 있음

npm 설치 오류 대응

  • python 3.x 가 설치되어 있을 때, bcrypt npm이 설치되지 않는 증상이 있음
  • Python Version Manager 이용: https://github.com/pyenv/pyenv

읽어볼 내용

node-api-server

About

node js 스터디 용 프로젝트

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors