- Hands-On Data Structures and Algorithms with JavaScript
- Kashyap Mukkamala
- 111字
- 2021-06-30 19:12:13
Creating a Node.js application
To start off a sample Node.js project, simply create a project folder first and then run the following command from that folder:
npm init
On running this command, Node will prompt you with a series of questions, which you can either fill or leave blank:

Once the blank application is created, all you see is a file called package.json. You can now add the dependencies that are needed to create the Node.js application:
npm install body-parser express --save
The body-parser module helps with parsing of the POST request body, whereas the express module helps with the creation of the Node.js server.
推薦閱讀
- 垃圾回收的算法與實現(xiàn)
- Mastering Spring MVC 4
- UI智能化與前端智能化:工程技術、實現(xiàn)方法與編程思想
- Java設計模式及實踐
- MySQL數(shù)據(jù)庫管理與開發(fā)實踐教程 (清華電腦學堂)
- Learning ELK Stack
- SQL Server與JSP動態(tài)網(wǎng)站開發(fā)
- 從Java到Web程序設計教程
- HTML5 APP開發(fā)從入門到精通(微課精編版)
- C#程序設計(項目教學版)
- HTML+CSS+JavaScript網(wǎng)頁設計從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡開發(fā)視頻大講堂)
- JavaScript+jQuery網(wǎng)頁特效設計任務驅動教程
- 深入理解BootLoader
- Mastering VMware Horizon 7(Second Edition)
- Java多線程并發(fā)體系實戰(zhàn)(微課視頻版)