Git Product home page Git Product logo

classroom's Introduction

这是一个用 Rails+Nodejs+Redis 做出来的一个小的实时应用程序。网站总体框架用 rails,页面的一些实时效果使用 nodejs+socket.io 来实现,并且把数据存到 Redis 数据库之中,实时部分代码在 realtime/ 目录之中。

把数据存入 Redis 都是由 nodejs 来完成,但是后续对于存入的数据进行统计和展示,还是用 Rails 来实现,毕竟 Ruby 来写一些脚本还是比 js 舒服。所以总提架构上 Rails 和 nodejs 基本上是完全分开的,Rails 只是给 nodejs 传递很简单地数据,而 nodejs 并不直接给 rails 传递数据,而是把数据存到 Redis 中,供 Rails 使用。所以这个架构是分工清晰的,代码维护起来也简单。

实际不是好了之后,点击页面上的 Data 链接,就可以看到由 ruby 统计出来的数据报告了。

classroom's People

Contributors

happypeter avatar billie66 avatar

Watchers

James Cloos avatar Renliang.Pan 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.