nodejs development

获取最新稳定版源码
  git clone --branch v0.8.14-release git://github.com/joyent/node.git
进入源代码目录
  cd node
创建一个本地目录
  mkdir ~/local
配置node指向刚刚创建的目录
  ./configure --prefix=$HOME/
local/node
编译安装,等待10分钟
  make
  make install
修改配置文件
  echo export PATH=$HOME/local/node/bin:$PATH’ >> ~/.profile
  echo export NODE_PATH=$HOME/local/node:$HOME/local/node/lib/node_modules’ >> ~/.profile
  source ~/.profile
安装成功,查看node版本
  node -v
安装npm
  curl http://npmjs.org/install.sh | sh


编写一个C/C++插件
npm install -g node-gyp
node-gyp configure
node-gyp build



  

  

http://www.oschina.net/question/54100_28161


转载于:https://my.oschina.net/haiping008/blog/88432

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Node.js Web Development: Build secure and high performance web applications with Node.js 10 Node.js is a server-side JavaScript platform using an event-driven, non-blocking I/O model allowing users to build fast and scalable data-intensive applications running in real time. This book gives you an excellent starting point, bringing you straight to the heart of developing web applications with Node.js. You will progress from a rudimentary knowledge of JavaScript and server-side development to being able to create, maintain, deploy and test your own Node.js application.You will understand the importance of transitioning to functions that return Promise objects, and the difference between fs, fs/promises and fs-extra. With this book you'll learn how to use the HTTP Server and Client objects, data storage with both SQL and MongoDB databases, real-time applications with Socket.IO, mobile-first theming with Bootstrap, microservice deployment with Docker, authenticating against third-party services using OAuth, and use some well known tools to beef up security of Express 4.16 applications. What you will learn Install and use Node.js 10 for both development and deployment Use the Express 4.16 application framework Work with REST service development using the Restify framework Use data storage engines such as MySQL, SQLITE3, and MongoDB Use User authentication methods with OAuth2 Perform Real-time communication with the front-end using Socket.IO Implement Docker microservices in development, testing and deployment Perform unit testing with Mocha 5.x, and functional testing with Puppeteer 1.1.x Work with HTTPS using Let's Encrypt, and application security with Helmet
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值