Background skeleton system based on hyperf architecture

Time:2021-1-13

skeleton

introduce

skeletonIs a framework application that uses the hyperf framework. It includes the basic system functions, permission setting, verification, role management, user management, menu management and so on.

skeletonThe project has only back-end code, and all data is based on interface request. So we need to combine the front and back end separation projectskeleton-admin

requirement

Hyperf has certain requirements for the system environment, and can only run in Linux and MAC environment. However, due to the development of docker virtualization technology, docker for windows can also be used as the running environment under windows. If you want to deploy this program with docker, refer to the hyperf docker deployment tutorial.

Environmental dependence

PHP >= 7.2
Swoole PHP extension >= 4.4(And close the short tag)
OpenSSL PHP extension
JSON PHP extension
PDO PHPExtension (if you want to use mysql, you need to enable the extension)PHPExtension (if you want to use redis, you need to enable the extension)PHPExtension (if grpc is used, you need to enable extension)

Git pull code

    git clone https://github.com/anziguoer/skeleton.git path/to/install

Installation dependency

composer install

Configuration environment

[Project configuration]
APP_NAME=skeleton
APP_ENV=dev
APP_URL=http://localhost:9501

[MySQL configuration]
DB_DRIVER=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=skeleton
DB_USERNAME=root
DB_PASSWORD=root
DB_CHARSET=utf8mb4
DB_COLLATION=utf8mb4_unicode_ci
DB_PREFIX=

[Redis configuration]
REDIS_HOST=localhost
REDIS_AUTH=(null)
REDIS_PORT=6379
REDIS_DB=0#Default administrator accountID
ADMINISTRATOR_ID=1

[jwt token key]
SIMPLE_JWT_SECRET=

database

Import/storage/databases/All the following SQL files

Start project

cd path/to/install

php bin/hyperf.php start

Initial account password

account: [email protected].COM: admin123

Basic functions of skeleton

[*]user management [*]Authority management[*]Menu management[*]Role management[*]Middleware (authority, user authentication)

QQ communication group: 1031212459

This work adoptsCC agreementReprint must indicate the author and the link of this article