- Web Development with MongoDB and Node(Third Edition)
- Bruno Joseph D'mello Mithun Satheesh Jason Krol
- 99字
- 2021-07-08 10:32:42
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.
推薦閱讀
- Expert C++
- Java程序員面試算法寶典
- Wireshark Network Security
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- C語言程序設計案例式教程
- Visual FoxPro程序設計
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- ScratchJr趣味編程動手玩:讓孩子用編程講故事
- SQL Server 2008 R2數據庫技術及應用(第3版)
- Mastering Apache Storm
- ASP.NET 4.0 Web程序設計
- OpenCV Android Programming By Example
- Learning Bootstrap 4(Second Edition)
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- Hands-On Dependency Injection in Go