Giter Site home page Giter Site logo

php-app's Introduction

PHP App Example

Requirements To Run Test

  1. Composer
  2. PHP7
  3. PHP Sockets Extensions Installed

Video Processing and RabbitMQ

Overview

The services shows a basic example of how to create a service for processing videos with RabbitMQ.

How To Run

  1. Ensure RabbitMQ is installed and running locally
  2. Run composer install to install required packages
  3. Open up two tabs in your console
  4. In one tab, run php server.php
  5. In the other tab, run php client.php

Source

https://github.com/ProdigyView-Toolkit/Microservices-Examples-PHP




Edit README

DEV

This application use vscode devcontainer for building dev environnement.
Devcontainer will build and launch php & rabbitmq containers.
It will map current source dir inside /workspace and src/ iniside /var/www/html.
VsCode terminal is opened inside the php-app container.
Application is available on http://localhost:8080
Rabbitmq management UI is available on http://localhost:15672 with guest/guest credentials.

"PROD"

git clone <...>
docker compose up -d 

Application is available on http://localhost:8080
Rabbitmq management UI is available on http://localhost:15672 with guest/guest credentials.
:Warning: You MUST exit devcontainer before launching the "docker compose up" command.

APP

On the first tab http://localhost:8080/server.php,
On the second tab http://localhost:8080/client.php, Few seconds later, video.mov will be available inside /var/www/html (in src/ directory in dev mode) You can download it on http://localhost:8080/video.mov

php-app's People

Contributors

jredel 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.