Git Product home page Git Product logo

chattrbox's Introduction

chattrbox

《Web开发权威指南》书中的第3个demo

commands

npm install --save-dev nodemon
--save-dev # 安装开发环境依赖 devDependencies

# 查看 package 的 repository 地址
npm fund
npm fund nodemon

# 配置npm的registry地址 && 验证是否成功
npm config set registry https://registry.npm.taobao.org
npm config get registry
npm info express

npm start   # 不用run,因为npm假定start脚本一定存在
npm run dev # 自定义的npm脚本需要显示地强调你想要run这些脚本

npm install --save ws
--save # dependencies 生产环境依赖

npm install -g babel-cli
npm install --save-dev babel-core
npm install --save-dev babel-preset-es2015
npm install --save-dev browserify babelify watchify
babel app/scripts/src/app.js -o app/scripts/dist/main.js

本地运行项目

# 进到项目 chattrbox,运行
npm run dev

# 打开一个新的终端,运行
npm run watch

问题

exit 0

exit 1

最佳实践

先报错,早返回 示例能给出最好的说明

chattrbox's People

Contributors

cwy007 avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.