Code Monkey home page Code Monkey logo

knight's Introduction

knight

courser framework blog demo

install

composer require eclogue/knight

usage

  • npm install 安装前端依赖

  • composer install 安装后端依赖

  • npm run dev dev 环境启动前端服务

  • php api/app.php dev 环境启动后端服务

  • npm run build 打包前端文件

  • php api/app.php --env=production 线上环境启动后端服务

  • composer run-script doc 自动生成 swagger api 文档

  • npm run deploy 部署服务

前端

鄙人前端渣~!!!

使用 vue2.x

markdown 语法

api

knight api 是基于 courser,遵循 psr 标准。底层使用 swoole 提供 http 服务。

ORM

Mews ORM 提供连接池和连接池事物, 配合manjuska,自动生成模型文档

document

knight api 文档使用 manjuska 自动生成。

Notice 由于无入侵代码,使用的是 php 语法树解析,并不能生成完美文档,还需手动修改些许部分。

文档生成命令: composer run-script doc

详情见: document

knight's People

Contributors

superbogy avatar

Watchers

 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.