Git Product home page Git Product logo

kevin-skeleton's Introduction

介绍

hyperf-skeleton项目

项目入门

文档

https://hyperf.wiki/

Docker运行环境

  • window11中使用Docker Desk工具运行hyper
  • Dockerfile 文件为配置信息
  • docker-compose.yaml 配置mysql、redis、hyperf端口号、镜像、挂载目录
Docker启动流程如下:
当前项目目录下运行cmd命令
1. 拉取镜像文件 docker pull hyperf/hyperf:8.2-alpine-v3.18-swoole-slim
2. 构建本地镜像 docker compose bulid
3. 运行镜像    docker compose up -d  

运行hyperf

  • 查看运行的容器 docker ps -a
  • cmd命令窗口进入指定容器 docker exec -it 容器id bash
  • 该文件挂载在/opt/www/*目录下
  • 启动hyperf命令 php bin/hyperf.php start
启动成功输入如下:
[INFO] HTTP Coroutine Server listening at 0.0.0.0:9501

hyperf常用命令

# 引入包文件
composer require hyperf/database 引入hyperf/database
# 更新依赖
composer cs
# 创建模型
php hyperf.php gen:model
# 创建控制器
php hyperf.php gen:controller TestController
# 创建脚本
php hyperf.php gen:command TestCommand

kevin-skeleton's People

Contributors

734380794 avatar

Watchers

 avatar

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.