- 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.
推薦閱讀
- ThinkPHP 5實戰
- 深入理解Django:框架內幕與實現原理
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Web開發的貴族:ASP.NET 3.5+SQL Server 2008
- 精通搜索分析
- C#程序設計基礎:教程、實驗、習題
- Julia高性能科學計算(第2版)
- Kotlin編程實戰:創建優雅、富于表現力和高性能的JVM與Android應用程序
- C#開發案例精粹
- Clojure for Machine Learning
- Mastering Adobe Captivate 7
- Arduino Wearable Projects
- Backbone.js Testing
- Mastering Apache Camel
- jQuery Mobile Web Development Essentials(Second Edition)