Giter Site home page Giter Site logo

jkulak / laravel-app Goto Github PK

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

Tutorial app for Laravel with Zend Server installed through Docker ๐Ÿณ

Shell 0.17% PHP 83.20% JavaScript 0.82% ApacheConf 0.45% Vue 0.39% HTML 14.98%
zend-server gulp laravel docker php composer

laravel-app's Introduction

Installation

Using Docker

Below command will build the image from Dockerfile and start the Zend Server (app) container and the Database (db) container. It will mount the ./src directory inside the app container and link the db container.

docker-compose up

After successful run, your application (from ./src) will be available at: http://localhost:8080/.

Development

To fully use the development environment provided with Laravel and Zend Server, you need to install Nodejs dependecies, by loggin into the docker container

docker exec -ti web_app bash

And running npm install in /var/www/html.

Run ./node_modules/.bin/gulp watch - to make gulp watch for changes in your assets and run its tasks automatically.

Building

To build and prepare your assets for production, use Gulp, that is bundled with Laravel skeleton apps. Gulp will be only available after performing the previous step of installing dependecies

./node_modules/.bin/gulp

For production

./node_modules/.bin/gulp --production

App container

After docker-compose up, your Zend Server UI will be available at: http://localhost:18081/, with admin/admin default creditentials.

Components

  • Zend Server 9 with Z-Ray (PHP debugging tool)
  • composer installed
  • laravel CLI installed
  • php artisan installed
  • node Node.js v. v6.9.4
  • npm v. 3.10.10

Configuration

To use Z-Ray, you need to naviage to http://localhost:18081/ZendServer/#!/zray/settings/advanced and set the Z-Ray URL to http://localhost:18081/ZendServer

Database

Create backup

docker run --net zf3app_default --rm mysql:5.7 mysqldump -h zf3app_db_1 -uroot -pexample cards > db-backup.sql

Restore backup

docker run --net zf3app_default --rm mysql:5.7 mysql --verbose -h zf3app_db_1 -uroot -pexample cards < db-backup.sql

laravel-app's People

Contributors

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