Giter Site home page Giter Site logo

chinaliwenbo / durap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from doujiang24/durap

0.0 2.0 0.0 17.06 MB

lua web framework

Makefile 0.07% Lua 3.65% JavaScript 19.93% CSS 23.87% HTML 42.97% PHP 0.55% Smarty 7.45% Perl 0.96% Shell 0.15% Nginx 0.39%

durap's Introduction

Name

Durap It is lua web framework based on ngx-openresty.

Status

Now it is still experimental and under early development. And it powerd some app online.

NOTICE: This project is not maintained anymore and is not recommended for production environments.

注意:由于工作内容略有变更,时间也有限,这个项目一直没有持续更新,并不推荐大家使用 :)

Description

简要介绍

  1. 基本实现了 MVC 的小框架,CodeIgniter(PHP) Like。支持多 APP,每个 APP 为一个目录,APP 之间相互独立

  2. system 目录为框架代码

  3. t 目录为测试集,由 test-nginx 驱动,测试 demo1 APP 的功能,需要完成 database,redis 初始化支持

  4. blog 目录为相对完整 APP

  5. router:自动路由,规则类似 CI,根据 ngx.var.router_uri 来映射 app/controller 目录下的 module,router_uri 类似 uri,在 nginx.conf 里赋值

  6. model:在 system/database 下封装了 mysql, redis 的库,主要包含 connect,error log,以及 mysql 的 active record 封装 每个 APP 有自己的 model 实现,在 app/model 目录下

  7. controller:app/controller 目录下存放当前 APP 的 controller

  8. loader:用来装在 APP 里的 module(controller,model,config,library,view),支持缓存

  9. index.lua:框架的统一入口

License

This software is distributed under Apache License Version 2.0, see file LICENSE or http://www.apache.org/licenses/LICENSE-2.0

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.