Giter VIP home page Giter VIP logo

stigmergic-modeling's People

Watchers

 avatar  avatar  avatar  avatar

stigmergic-modeling's Issues

关于app.js文件中all,get,post等routes方法的模块化问题

例如下面这段代码:

app.all('/reg',routes.state.checkNotLogin);
app.get('/reg', routes.home.reg);
app.post('/reg', routes.home.doReg);

是否采用router API说明文档(http://expressjs.com/4x/api.html#router)的方式进行封装一下,变成下面的方式:

app.use('/reg', routes.reg);

其中routes.reg是一个express.Router(),并对其这样设置
routes.reg.all('/', routes.state.checkNotLogin); //不确定是用use还是all
routes.reg.get("/", routes.home.reg);
routes.reg.post("/", routes.home.doReg);

这样看起来感觉模块化程度更好一些。

仅供参考。

关于数据库

这个项目使用mongodb作为数据库。有没有考虑使用mongoose来使用mongodb呢?

关于这个工具的整体架构

这个工具的整体架构是怎么样的?有谁能介绍一下吗?

特别是关于下面这些问题:
1.个体模型是否需要单独存放,还是需要时从群体模型中读取出来。
2.个体模型/群体模型在运行时是仅仅驻留在服务器端,还是要下载到客户端。
2.1.如果驻留在服务器端,如何在服务器和客户端进行实时数据的传输:是通过传统的页面请求刷新机制,或是通过ajax技术,或是通过websoket进行。
2.2.如果下载到客户端,如何保证客户端数据和服务器端数据的一致性问题。
3.客户端有较高实时性要求的页面是否需要采用SPA(Single Page Application)的方式来实现。

关于HTML模版的使用

在package.json文件里,看到这个项目使用了两个html模版引擎:jade和ejs。为什么要在一个项目里使用两种模版引擎呢?

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.