Skip to content

Commit d59c9ac

Browse files
author
José Fernando Cordova
committed
Initial commit
0 parents  commit d59c9ac

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/bootstrap/compiled.php
2+
.env.*.php
3+
.env.php
4+
.env

LICENSE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2018
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Laravel API Boilerplate Dockerized
2+
3+
[![Build Status](https://travis-ci.org/jfernancordova/docker-laravel-api-dev.svg?branch=master)](https://travis-ci.org/jfernancordova/docker-laravel-api-dev)
4+
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5+
6+
* API Laravel Boilerplate 5.5
7+
* Apache 2
8+
* MySQL
9+
* Docker
10+
11+
[![Try in PWD](https://cdn.rawgit.com/play-with-docker/stacks/cff22438/assets/images/button.png)](http://play-with-docker.com?stack=https://raw.githubusercontent.com/jfernancordova/docker-laravel-api-dev/master/docker-compose.yml)
12+
13+
## Docker Instructions
14+
15+
### Swarm Modes
16+
In the root directory:
17+
<pre><code>docker stack deploy -c docker-compose.yml api-laravel-docker</code></pre>
18+
19+
### Docker Compose
20+
In the root directory:
21+
<pre><code>docker-compose -f docker-compose.yml up --build -d</code></pre>
22+
23+
### Execute Laravel Pre-requisites
24+
25+
In the root directory:
26+
<pre><code>docker container exec dockerlaravelapidev_php_1 composer install && cp.env.example .env && php artisan key:generate && php artisan migrate</code></pre>
27+
28+
### How to fix Error: laravel.log could not be opened?
29+
In the root directory:
30+
<pre><code>chmod -R 775 storage </code></pre>
31+
* 7 - Owner can write
32+
* 7 - Group can write
33+
* 5 - Others cannot write!
34+
Reference:
35+
(https://stackoverflow.com/questions/23411520/how-to-fix-error-laravel-log-could-not-be-opened)
36+
37+
### API Boilerplate Reference
38+
(https://github.com/francescomalatesta/laravel-api-boilerplate-jwt/blob/master/readme.md)

0 commit comments

Comments
 (0)