Code Monkey home page Code Monkey logo

la-user-center's Introduction

用户中心

基于Hyperf框架的用户中心,《PHP微服务练兵》系列教程源码 https://blog.csdn.net/donjan/article/details/103005084

安装

注意,使用的mysql未启用sql_model的ONLY_FULL_GROUP_BY,STRICT_ALL_TABLES

已有环境

git clone https://github.com/donjan-deng/la-user-center.git
cd la-user-center
composer install

复制.env.example为.env,并编辑好配置

# 运行数据库迁移
php bin/hyperf.php migrate

# 运行数据填充
php bin/hyperf.php db:seed --path=seeders/user_table_seeder.php
php bin/hyperf.php db:seed --path=seeders/permission_table_seeder.php
# 启动
php bin/hyperf.php start
默认管理员账号admin,密码123456

Docker安装

docker run -d --name user-center \
  --restart=always \
  -p 9501:9501 -p 9504:9504 \
  -it --entrypoint /bin/sh \
  donjan/la-user-center

docker exec -it user-center bash

cd /opt/www

复制.env.example为.env,并编辑好配置

# 运行数据库迁移
php bin/hyperf.php migrate

# 运行数据填充
php bin/hyperf.php db:seed --path=seeders/user_table_seeder.php
php bin/hyperf.php db:seed --path=seeders/permission_table_seeder.php

la-user-center's People

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.