Coder Social home page Coder Social logo

Build Status Latest Stable Version

目录结构

project
├── README.md
├── app                     # 后台源码
│   ├── common              # 常用代码库
│   ├── config              # 网站后端配置
│   ├── src                 # PHP主要源代码  
│   │   ├── Controlelr      # 控制器  
│   │   ├── Model           # 模型 
│   │   ├── Models          # 未迁移模型,会合并到 Model,没有使用 namespace
│   │   └── View            # 视图 
│   ├── api.php             # 接口初始化代码  
│   ├── ptphp.php           # Cli初始化代码
│   └── init.php            # 后台初始化代码    
├── bin                     # 命令行执行代码
│   └── deploy.php          # 部署脚本   
├── etc                     # 服务器配置
│   ├── nginx               # Nginx配置
│   └── supervisor          # 守护进程配置
├── logs                    # 日志
├── docs                    # 文档说明
├── src                     # 源码
│   └── PtPHP               # PtPHP
├── tests                   # 测试代码
├── webroot                 # 网站根目录
├── package.json            # package.json
├── composer.json           # composer.json
├── phinx.yml               # 数据库配置
└── webpack.config.js       # webpack配置文件

安装

npm install webpack-dev-server webpack -g -d
cp package.dist.json package.json
npm install -d
npm run fix_antd
cp composer.dist.json composer.json
composer config repo.packagist composer https://packagist.phpcomposer.com
composer clearcache
composer install
composer require ptphp/ptphp

配置

#数据库
cp phinx.dist.yml phinx.yml

#系统配置
##开发环境
cp app/config/env/development.dist.php app/config/env/development.php

##测试环境
cp app/config/env/testing.dist.php app/config/env/testing.php

#前端配置
cp app/config/app.dist.json app/config/app.json

#webpack config
cp webpack.config.dist.js webpack.config.js 

#系统环境(虚拟主机或者不能配置服务器环境变量专用)
#cp app/config/.env.dist.php app/config/.env.php 

vendor/bin/phinx migrate

运行

npm start

open in browser

http://127.0.0.1:3080

编译

npm run build

Resources

Author

[email protected]

文档

License

The MIT License(http://opensource.org/licenses/MIT)

Dhole's Projects

adminlte icon adminlte

AdminLTE - Free Premium Admin control Panel Theme That Is Based On Bootstrap 3.x

draft-js icon draft-js

A React framework for building text editors.

encryptedchat icon encryptedchat

This is a full native iPhone app to create realtime, text based group or private chat with Parse and Firebase.

f8app icon f8app

Source code of the official F8 app of 2016, powered by React Native and other Facebook open source projects.

gitflow icon gitflow

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.

github-buttons icon github-buttons

Showcase any GitHub repo's success with these two simple, static buttons featuring dynamic watch and fork counts.

jmui icon jmui

Mobile UI React Components

koa-boiler icon koa-boiler

Koa 2.0 boilerplate for a production-ready app.

light-admin icon light-admin

[PoC] Pluggable CRUD UI library for Java web applications

login-flow icon login-flow

:key: A login/register flow built with React&Redux

minify icon minify

Mirror for Minify codebase. Minify is a PHP5 app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers.

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.