Coder Social home page Coder Social logo

ahmadfikrimasyhur / docker-laravel-api-dev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jfernancordova/docker-laravel-api-dev

0.0 0.0 0.0 246 KB

:whale: The containerized Laravel API development environment

License: MIT License

Shell 2.18% JavaScript 0.52% PHP 92.30% Vue 0.51% Blade 3.22% Dockerfile 1.28%

docker-laravel-api-dev's Introduction

Laravel API Boilerplate Dockerized

Build Status License

  • API Laravel Boilerplate 5.5
  • Apache 2
  • MySQL
  • Xdebug
  • Docker

You can manage a RestFull API in the fastest, simplest and funniest way! and with open source code dependencies.

However, you can contribute for a better performance, the goal is to focus on the code avoiding the configurations and having docker installed.

Prerequisites

Environments

Dev or Local Mode

  • docker-compose-dev.yml: generate automatically folders and require-dev dependencies on your local workspace including Xdebug. Note: the yaml file has a key called:"XDEBUG_MODE", this yaml by default has the value true (1) to install it.

You can appreciate the dependencies generated automatically on your workspace!

Play with Docker Mode

Play With Docker

  • docker-compose-pwd.yml: you can use it to visualize this environment and test it, however you should see the container lists to verify the HEALTHCHECK.
# container lists
docker ps
# make sure that the docker dockerlaravelapidev_php_1 or php container is (healthy),
normally the process begins in starting mode (health: starting),

Production Mode

  • docker-compose-prod.yml: if you are going to use this yaml, make sure to generate the migrations before!,you can modify the entrypoint to generate them.

Deployment

Docker Environments

Clone this repository and run the following commands based on your orchestrator;

Swarm Mode

Clone this repository and run the following commands:

cd docker-laravel-api-dev/
docker stack deploy -c docker-compose-dev.yml docker-laravel-api-dev
# wait for the HEALTHCHECK in healthy mode

Docker Compose

Clone this repository and run the following commands:

cd docker-laravel-api-dev/
docker-compose -f docker-compose-dev.yml up --build -d 
or to see the logs 
docker-compose -f docker-compose-dev.yml up 
# wait for the HEALTHCHECK in healthy mode

Running the tests

You have a Travis Pipeline to apply Continuous Integration, and other technology to test this environment.

You can modify the runtests.sh from the scripts folder

Insert jobs, instructions, builds in this pipeline

API Boilerplate Reference

https://github.com/francescomalatesta/laravel-api-boilerplate-jwt/blob/master/readme.md

docker-laravel-api-dev's People

Contributors

jfernancordova avatar dependabot[bot] 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.