Giter Site home page Giter Site logo

x-api's Introduction

项目采用 Phalcon devtool 工具创建。

项目的创建使用:phalcon create-project x-api modules

前端访问地址:localhost/v1/xx

后端访问地址:localhost/back/xx

cli 模块,请进入项目跟目录后使用 php run 查看使用帮助信息

安装项目

  1. 从 GitHub 获取项目
git clone https://github.com/helei112g/x-api.git
  1. 安装依赖包
composer install

项目要求

  • PHP >= 7.0
  • curl
  • gettext
  • gd (to use the Phalcon\Image\Adapter\Gd class)
  • libpcre3-dev (Debian/Ubuntu), pcre-devel (CentOS), pcre (macOS)
  • json
  • mbstring
  • pdo_*
  • fileinfo
  • openssl

项目目录说明

所有项目编码均在 app 下面

  1. 基本命令
# 查看自定义的命令任务
php run

# 根据表结构生成model
php run model

# 生成数据库文件信息
phalocon migration
  • app\logs 用来记录文件日志
  • app\migrations 是数据库文件信息
  • app\common\contracts 目录存放规范系统编码行为的类,以及常量定义等

x-api's People

Contributors

helei112g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

guoyu07 space-x

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.