The editor of Downcodes brings you an introduction and installation guide for the think-admin backend management system. think-admin is developed based on the ThinkPHP6 framework. It is powerful and easy to use. It is an ideal choice for you to build a back-end management system. It provides a wealth of functions, including automatic CRUD generation, permission management, modular installation and uninstallation, etc., which greatly simplifies the development process. In addition, it also supports Swoole mode and microservice architecture, providing more possibilities for your application expansion. Next, we will introduce the special functions and installation steps of think-admin in detail to help you quickly build your own back-end management system.
think-admin is a backend management system based on thinkphp6, benchmarked against laravel-admin.
think-admin features
1. One-click installation of composer library, rich configuration items
2. Automatically generate additions, deletions, modifications, and queries based on the database, and generate corresponding menus and permissions to reduce repetitive work on basic machinery.
3. Complete administrator, role, permission, menu, application management
4. Supports modularization and can install and uninstall applications individually.
5. Supports swoole mode. You can install https://gitee.com/qian/think (a PHP library with its own service registration discovery and API gateway) as a microservice management backend.
6. The front-end is based on elementui components and http://php.form-create.com/ form components. It does not limit the development method and can be developed according to the traditional web model.
think-admin installation steps
//Set up Alibaba Cloud composer image
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
//Create thinkphp6 project
composer create-project topthink/think tp
cd tp
//Install think-admin
composer require suframe/think-admin -vvv
cp .example.env .env
//Edit and modify the .env database to your own database account
//Execute sql migration
php think migrate:run
It is important to note the following step
Edit the file app/middleware.php and add it to the return array.
thinkmiddlewareSessionInit::class,
Then go to the priority in config/middleware.php and add the same project. This is because this middleware is executed earlier and needs to be initialized in advance.
'priority' => [
thinkmiddlewareSessionInit::class,
],
run:
php think run -H 0.0.0.0
access
http://127.0.0.1:8000
The account of the demo address: admin, password: admin, please do not change the information randomly.
example:
The source code of Jinyun Smart Logistics Platform is a Jinyun Yuansheng plug-in, and its operation requires the support of Jinyun framework!
Freight logistics platform: multi-merchant dedicated line release + customer delivery demand release + cargo information route inquiry + LTL online ordering + merchant door-to-door pickup + customer dedicated line delivery, etc.
【Update mechanism】
The current application belongs to the Lego scene body, and the scene body itself will not be updated frequently. Mainly depends on the updated iteration of the package plug-in! These dependent update mechanisms can achieve one update and update all scene bodies at the same time, greatly improving the quality and efficiency of application update iterations!
Features
1. In order to facilitate the promotion of the platform, you can set up: car owners, dedicated lines to publish information (need to push friends, etc.);
2. The entire freight mode, quotation mode, etc. are designed strictly with reference to the logistics park standards;
3. All operations of car owner + cargo owner + dedicated line are implemented on the mobile phone.
Hope the above information is helpful to you. If you have any questions, please feel free to ask. The editor of Downcodes looks forward to your feedback!