mirror of
https://gitee.com/ctexthuang/hyperf-micro-svc.git
synced 2026-03-26 14:40:17 +08:00
fix : update cors and admin user cache
This commit is contained in:
22
README.md
22
README.md
@@ -1,10 +1,10 @@
|
||||
## 仓库
|
||||
|
||||
- [Hyperf_Micro_Svc](https://gitee.com/ctexthuang/hyperf-micro-svc) - git远程仓库地址
|
||||
- [Geeco_server](https://gitee.com/ctexthuang/hyperf-micro-svc) - git远程仓库地址
|
||||
|
||||
## 特性
|
||||
|
||||
- **最新技术栈**:使用 PHP8.3/hyperf3.1/swoole5.1.4/phpredis 6.0.2 等后端前沿技术开发
|
||||
- **最新技术栈**:使用 PHP8.3/hyperf3.1/swoole5.1.8/phpredis 6.0.2/PostgreSQL18 等后端前沿技术开发
|
||||
|
||||
## 文档
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
- [swoole](https://www.swoole.com/) - 熟悉 swoole 特性
|
||||
- [php8.3](https://www.php.net/) - 熟悉 php 基础语法
|
||||
- [hyperf](https://hyperf.wiki/3.1/) - 熟悉 `hyperf` 基本语法
|
||||
- [postgreSql18](https://www.postgresql.org/docs/18/index.html) - 熟悉 PostgreSQL18 基本语法
|
||||
## 安装和使用
|
||||
|
||||
- 安装 swoole 和 phpredis 扩展
|
||||
@@ -34,15 +35,30 @@ git clone https://gitee.com/ctexthuang/hyperf-micro-svc
|
||||
|
||||
```bash
|
||||
composer install
|
||||
|
||||
# 开发环境:
|
||||
composer install -vvv
|
||||
# 生产环境安装:
|
||||
composer install --no-dev --optimize-autoloader
|
||||
```
|
||||
|
||||
- 运行
|
||||
- 数据同步
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
|
||||
vim .env
|
||||
|
||||
mysql -u root -p -e "CREATE DATABASE xxx CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
|
||||
php bin/hyperf.php migrate
|
||||
php bin/hyperf.php db:seed
|
||||
|
||||
# 仅某个文件 seeder
|
||||
php bin/hyperf.php db:seed --path=seeders/create_time_zone_line.php
|
||||
|
||||
- 运行
|
||||
|
||||
```
|
||||
php bin/hyperf.php start
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user