Giter Site home page Giter Site logo

dearvn / hyperf-dev Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 90.61 MB

A project to learn hyperf, vuejs and can scale to any application.

PHP 40.95% Dockerfile 0.10% JavaScript 14.42% HTML 0.07% CSS 0.46% Vue 42.72% SCSS 1.28%
hyperf vue2 vuejs admin admin-dashboard learning learning-php learning-vuejs

hyperf-dev's Introduction

Prerequisites

  • node >= 12.16.1
  • npm >= 6.13.4
  • php >= 7.3.0
  • swoole >= 4.5.3
  • hyperf >= 2.2
  • vue >= 2.0
  • element >= 2.15.3

Setup

*MacOS

PHP >=7.3

Install ext swoole

Download swoole-src-4.6.0.tar.gz

tar xvzf swoole-src-4.6.0.tar.gz    

cd swoole-src-4.6.0

phpize  

./configure --enable-openssl  --with-openssl-dir=/usr/local/etc/[email protected]

make

mkdir /usr/local/opt/php73-swoole

cp modules/swoole.so /usr/local/opt/php73-swoole

sudo vi /usr/local/etc/php/7.3/conf.d/ext-swoole.ini


Add lines:

extension=/usr/local/opt/php73-swoole/swoole.so
swoole.use_shortname='Off'

Check module swoole

php -m

Run hyperf-backend

php ./bin/hyperf.php migrate    

php ./bin/hyperf.php init:data_seeder

php ./bin/hyperf.php init

php ./bin/hyperf.php start

Run hyperf-frontend

npm run dev

Screen shot

Alt text

Alt text

Alt text

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.