Node.js, Express, MongoDB를 이용하여 REST API 만들기 http://mobicon.tistory.com/197
원문 : http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/
Installing Node.js
Installing Express
Express is a lightweight node.js web application framework. It provides the basic HTTP infrastructure that makes it easy to create REST APIs.
Installing MongoDB
To install MongoDB on your specific platform, refer to the MongoDB QuickStart. Here are some quick steps to install MongoDB on a Mac:
Installing the MongoDB Driver for Node.js
There are different solutions offering different levels of abstraction to access MongoDB from Node.js (For example, Mongoose and Mongolia). A comparaison of these solutions is beyond the scope of this article. In this, guide we use the native Node.js driver.
To install the the native Node.js driver, open a terminal window, cd to your nodecellar folder, and execute the following command:
npm install mongodb
.
'프로그래밍 > Script' 카테고리의 다른 글
[NodeJS] Realtime Chat with Node.js (0) | 2017.03.22 |
---|---|
if(window.console!=undefined) console.log.bind() (0) | 2017.03.14 |
[jQuery] jQuery로 모바일에서 가로보기인지 세로보기인지 알아내기 (0) | 2016.12.29 |
[javascript] 현재 경로를 찾아서 어느 위치인지 인식한다. (0) | 2016.12.13 |
[javascript] URL get path info , Query String (0) | 2016.12.07 |