CPP - Node.js - Weex - Canvas 基于Node.js的Web项目
前导知识: Node.js; npm
打开终端
npm install
若之前有缓存可尝试
npm install --cache-min Infinity
npm start
此时应该自动打开网页
部署环境:
A barebones Node.js app using Express 4.
This application supports the Getting Started with Node on Heroku article - check it out.
Make sure you have Node.js and the Heroku CLI installed.
$ git clone git@github.com:heroku/node-js-getting-started.git # or clone your own fork
$ cd node-js-getting-started
$ npm install
$ npm start
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
or
For more information about using Node.js on Heroku, see these Dev Center articles:
- Getting Started with Node.js on Heroku
- Heroku Node.js Support
- Node.js on Heroku
- Best Practices for Node.js Development
- Using WebSockets on Heroku with Node.js
安装好环境 并建好帐号 后对于一个试图部署到herku上的项目
- 终端下进入项目目录
- heroku git:remote -a sailhe (sailhe是自己账户下的app名)
- git push heroku master