Skip to content

elminson/laravel-react-docker-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project laravel-react-docker-app

The Goal:​ Show off your knowledge of how to set up and use open source tools across the stack: Set up a PHP-based full stack application using a popular MVC framework and a Docker-based environment to run it. Build one page using a popular frontend framework and serve it from your MVC app.

What I Learned

  • Docker Implementation

Requirements

● Set up a PHP-based full stack application using a popular MVC framework (Zend, Symfony, Laravel, Magento, CodeIgniter).
● Please do not use WordPress - we love WordPress too, but it’s not what we’re looking for here (not MVC).
● Use a popular frontend framework/library (React, Vue, Angular, Backbone, Knockout) to build one responsive page served by the above MVC framework.
● The page can be very simple or fancy, but should be responsive.
● Use a docker-based environment to run it all:
○ You can use Docker images from hub.docker.com or build your own
○ Include a Dockerfile if you build your own
○ Use docker-compose.yml if your application has multiple pieces (e.g. web + database) (not required)
● You do not have to use a database.
● Commit everything and share a public GitHub repo link.
● Include setup instructions for your application in a README.md.
● Test your README.md instructions.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Git
Docker

Install Git following these instructions

# https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

Install Docker following these instructions

https://docs.docker.com/compose/install/

Installing and running

In order to run the project after install git and docker you will need

  1. clone this repository.
  2. Build the app.
  3. Start and runs the entire app.
git clone https://github.com/elminson/laravel-react-docker-app.git
cd laravel-react-docker-app
docker-compose build
docker-compose up

The app will be accesible by the port 8080

http://127.0.0.1:8080/

Tested

The project was tested in a new droplet in Digital Ocean (https://digitalocean.com) following the "Installing and running " instructions. Droplet used Ubuntu Docker 17.12.0~ce on 16.04 Screenshot_5

Built With

Screenshots

Screenshot_1 Screenshot_2 Screenshot_3 Screenshot_4 Screenshot_5

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Docker + Laravel + Reactjs + Blade Template Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published