Coder Social home page Coder Social logo

nodeserver's Introduction

nodeServer

最后一次更新时间:2018.8.3

1. 基本组成:

  1. http服务器
  2. MongoDB数据库
  3. 多进程Worker
  4. 辅助的file工具

2. 现有功能简介

1. http服务:

简单的postget请求封装,可直接在router.js里面添加新的路由信息

const Server = require('./core/server')
const server = new Server()
router.useServer(server)

2. MongoDB数据库:

确保环境中安装了MongoDB数据库。
引入了MongoDB的官方Node.js驱动mongodb模块

const db = require('./core/db')

3. 多进程Worker的使用

将以下功能加入子进程中:

  1. 深度遍历工作目录readDir
  2. 获取当前所有cpu的使用率getCPUs
const worker = require('./core/worker')

4. file工具

暂时封装了readDirDeep功能

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.