Giter Site home page Giter Site logo

pet-1's Introduction

宠物饲养管理后台

前言:

帮朋友做的本地管理宠物项目,也是为了学习前后端分离开发的方式。过程中体会到了开源的不易,但是通过大家的帮助收获也非常大,后面会坚持维护更新下去。 如果觉得不错希望大家给个star,有建议请直接怼 *^_^*给我一个提高的过程,谢谢大家!

项目架构:laravel5.5+vue2+element-ui

前端:

由于重心还是在后端,前端代码和目录分层,直接借鉴jcc的blog项目(这里感谢他的开源项目)

后台:

后端架构:

  • Controller : 控制器
  • Responses : 响应层
  • Routes : 路由(拆分处理)
  • Services : 服务层
  • Repository : 仓库层
  • Filters   : 根据参数自动过滤和排序。
  • Models   : 模型。
  • Libraries  : 扩展

由于分层比较多所以和朋友封装了一个扩展包:用命令一键生成项目架构扩展包

安装

使用要求:

laravel版本 >= 5.5

php版本 >= 7.1

安装laravel扩展

    composer update

配置laravel

     copy .env.example .env
    php artisan key:generate 
    
    //编辑.env配置你的数据库配置
    DB_HOST=
    DB_PORT=
    DB_DATABASE=
    DB_USERNAME=
    DB_PASSWORD=
    
    //发布迁移文件
    php artisan migrate

安装js扩展

    npm install

编译js代码:

    npm run dev
    
    // OR
    
    npm run watch
    
    // OR
    
    npm run production

数据:这里没有给大家提供测试数据

按照以下顺序添加就可以进行测试

  • 食品分类
  • 食品
  • 基因
  • 饲养箱
  • 宠物
  • 宠物成长记录
  • 宠物喂养记录

pet-1's People

Contributors

yb19890724 avatar puzzle9 avatar

Watchers

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