- 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.
推薦閱讀
- Raspberry Pi Networking Cookbook(Second Edition)
- Django開發從入門到實踐
- Python測試開發入門與實踐
- Responsive Web Design with HTML5 and CSS3
- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Python時間序列預測
- ASP.NET求職寶典
- Application Development with Swift
- The Statistics and Calculus with Python Workshop
- 程序員必會的40種算法
- 實驗編程:PsychoPy從入門到精通
- Learning Alfresco Web Scripts
- Office VBA開發經典:中級進階卷
- 軟件自動化測試實戰解析:基于Python3編程語言
- React.js 16從入門到實戰