官术网_书友最值得收藏!

Adding the application code

Now, let's write the simple application code to test things out. This app is going to basically connect to our locally running MongoDB server, insert a few records as seed data, and then provide the output on whether or not the data was inserted properly into MongoDB. You can download a Gist of the code via this URL: http://bit.ly/1JpT8QL.

Using your editor of choice, create a new file named app.js and save it to the application root, which is the testapp folder. Just copy the content of the preceding Gist on to the app.js file.

主站蜘蛛池模板: 囊谦县| 中西区| 磴口县| 临洮县| 陵川县| 临清市| 大悟县| 苏尼特右旗| 镇安县| 井陉县| 武夷山市| 普兰店市| 平潭县| 沁阳市| 岗巴县| 古浪县| 武陟县| 句容市| 彰化市| 达尔| 那坡县| 始兴县| 奉新县| 宁晋县| 青海省| 怀远县| 龙岩市| 霍州市| 新龙县| 崇仁县| 久治县| 芜湖县| 桐梓县| 三江| 即墨市| 湖北省| 土默特右旗| 黄平县| 麦盖提县| 沅江市| 雷山县|