Giter VIP home page Giter VIP logo

dmbase's Introduction

DM 项目初始化系统

该系统主要是给初学者能快速开始一个稍微漂亮的Symfony项目,代码未经严格测试,谨慎使用在生产环境。由于为了清晰易懂,代码还是有一定的耦合度,日后逐渐优化。

主要包含4个Bundle:

  • DmThemeBundle 提供一些后台模板,公用的Js库,公用样式,以及一些显示层的扩展。
  • DmSecurityBundle 主要是把Symfony的Access Control扩展,变成了一个可以从数据库读取配置的方式。
  • DmUserBundle 一个简单的用户管理模块,配合权限系统使用,可在此扩展。
  • DmGenerateBundle 从SensioGenerateBundle复制过来的,添加了中文的交互,一些中文参数,以及一些适应本系统的CRUD模板。

安装和配置:

一. 安装 Composer

二. 下载代码 git clone [email protected]:efeencheung/dmbase.git

三. 安装依赖包,如果在安装过程中没有正确的配置数据库信息,需手动编辑app/config/parameters.yml

cd dmbase
composer install

四. 导出前端公共文件

php app/console assets:install --symlink

五. 初始化数据库,数据初始化了三个用户,可使用normaluser/normaluser,admin/admin,superadmin/superadmin登录

php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load

六. 配置服务器,开发环境,虚拟主机之类

七. 然后清空一下缓存,接下来就可以访问了

php app/console cache:clear

dmbase's People

Watchers

James Cloos avatar hookover 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.