A

admin_yangzhou

扬州后台界面版

a3a19393 update · by weiqiang

#Suishengwan admin project

Init steps

  1. clone project

    git clone git@139.224.35.235:binqi.yuan/suishenwan_admin.git
  2. Go to project directory, rename .env.example to .env

    mv .env.example .env
  3. run composer update

  4. modify .env file to change db connections

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=suishenwan
    DB_USERNAME=root
    DB_PASSWORD=123123
  5. run migration to create the database tables

    php artisan migrate --seed
  6. use git subtree to use shared components

    //init remote
    git remote add modules git@139.224.35.235:binqi.yuan/suishenwan_module.git
    git remote add common git@139.224.35.235:binqi.yuan/suishenwan_common.git 
    git remote add db git@139.224.35.235:binqi.yuan/suishenwan_database.git
    //subtree add modules
    git subtree add --prefix=app/Modules modules master --squash
    git subtree add --prefix=app/Common common master --squash  
    git subtree add --prefix=database db master --squash
  7. use your own branch to start develop