Giter VIP home page Giter VIP logo

ex's Introduction

eX-http-frame

node-http服务简单轻量实现


概述

基于对express源码的阅读,思路上的一个理解,决定以现在这种简单的形式实现一个node-http-server

实现功能

  • 基本route处理
  • 静态文件服务
  • mysql 连接
  • redis缓存高热度数据 (后续)
  • 研究ECMAScript 6 的 Generato特性和 TJ's co的实现 尝试用KOA的思路重实现.

项目地址

具体的问题我都写了清晰的注释,同学们查看源码就可以理解了。 源码

结构

{
 - index.js
 - lib
     - main.js 逻辑处理和初始化配置
     - req.js 扩展http-req对象
     - res.js 扩展http-res对象
     - loop.js http-server运行时的管道
     - stream.js 后续的升级的流处理,暂时无用
     - mime.js && mime.json 获取静态文件相应 Content-Type
}

ex's People

Contributors

bear-qv avatar fimars avatar

Watchers

 avatar  avatar

ex's Issues

Do not package coredumps (reduce the unpacked size more than 2000 times)

Disclaimer: I do not use the package, this was found during automated npm packages downloading.

Atm, your npm package [email protected] has packaged size 20.5 MiB, and installed size 106.96 MiB.

106.91 MiB (99.95%) of that is consumed by the node.core file. Filetype: ELF 64-bit LSB core file x86-64, version 1 (FreeBSD), FreeBSD-style, from 'node'.

I suspect that that file was accidently packaged.

You could add it to .npmignore (if you have an .npmignore already) or to .gitignore (if you don't have an .npmignore).


Your current package files (as of [email protected]):

exxxxxxxxxxx-1.0.0.tgz/
├── .gitattributes
├── index.js
├── lib
│   ├── loop.js
│   ├── main.js
│   ├── mime.js
│   ├── mime.json
│   ├── req.js
│   ├── res.js
│   └── stream.js
├── node.core
├── .npmignore
├── package.json
├── README.md
└── test
    └── setting.js

2 directories, 14 files

status of this project?

Looks like the last commit was in 2015. Is this project still maintained or should it be considered EOL?

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.