Git Product home page Git Product logo

technode-tutorial's Introduction

TechNode

Tutorial on building slack like app with Angular 2, Spring MVC 4 and SockJS.

You can find first version of this tutorial on the master branch which focuses on how to build an chat app with Angular 1, Node.js and Socket.IO.

technode-tutorial's People

Contributors

island205 avatar yuanzm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

technode-tutorial's Issues

第二章跑不起来

  • question one:

入口文件app.js里面:

var Controllers=require("./controllers"); //这个地方引用的是一个文件夹,会报错。

是不是应该直接改为引用文件夹里面的文件.然后调用其方法

var Controllers=require("./controllers/user.js");
  • question two:

在router.js文件里面

$locationProvider.html5Mode({
         enabled:true,
         requireBase:false,   //这个地方要配置下,否则会报错[$location:nobase]
})

写到socket.io验证那个地方就写不下去了。仅仅实现了路由的请求,发送消息的内容实现不了。

bug发现

在看Chapter01的时候发现一些问题,能不能修改后提交pull request?

Chapter One

在将socket.io封装成service的时候

应该要把

var socket=io.connect("/");

改成

var socket=io.connect("http://localhost:3000");

否则一直会报错说连接不到后台的。

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.