Skip to content

Commit 9ca9d94

Browse files
committed
Initial commit
0 parents  commit 9ca9d94

File tree

105 files changed

+57591
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+57591
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vendor
2+
node_modules

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.env.example

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
LOG_CHANNEL=stack
8+
LOG_LEVEL=debug
9+
10+
DB_CONNECTION=mysql
11+
DB_HOST=mysql
12+
DB_PORT=3306
13+
DB_DATABASE=laravel
14+
DB_USERNAME=root
15+
DB_PASSWORD=pass
16+
17+
BROADCAST_DRIVER=log
18+
CACHE_DRIVER=file
19+
QUEUE_CONNECTION=sync
20+
SESSION_DRIVER=file
21+
SESSION_LIFETIME=120
22+
23+
REDIS_HOST=127.0.0.1
24+
REDIS_PASSWORD=null
25+
REDIS_PORT=6379
26+
27+
MAIL_MAILER=smtp
28+
MAIL_HOST=smtp.mailtrap.io
29+
MAIL_PORT=2525
30+
MAIL_USERNAME=null
31+
MAIL_PASSWORD=null
32+
MAIL_ENCRYPTION=null
33+
MAIL_FROM_ADDRESS=null
34+
MAIL_FROM_NAME="${APP_NAME}"
35+
36+
AWS_ACCESS_KEY_ID=
37+
AWS_SECRET_ACCESS_KEY=
38+
AWS_DEFAULT_REGION=us-east-1
39+
AWS_BUCKET=
40+
41+
PUSHER_APP_ID=
42+
PUSHER_APP_KEY=
43+
PUSHER_APP_SECRET=
44+
PUSHER_APP_CLUSTER=mt1
45+
46+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
47+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/storage/*.key
5+
/vendor
6+
.env
7+
.env.backup
8+
.phpunit.result.cache
9+
Homestead.json
10+
Homestead.yaml
11+
npm-debug.log
12+
yarn-error.log

.styleci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
php:
2+
preset: laravel
3+
disabled:
4+
- no_unused_imports
5+
finder:
6+
not-name:
7+
- index.php
8+
- server.php
9+
js:
10+
finder:
11+
not-name:
12+
- webpack.mix.js
13+
css: true

Dockerfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
FROM php:7.3-fpm
2+
3+
LABEL version="1.0.0"
4+
5+
RUN apt-get update && apt-get install -y \
6+
build-essential \
7+
libpng-dev \
8+
libjpeg62-turbo-dev \
9+
libfreetype6-dev \
10+
locales \
11+
libzip-dev \
12+
zip \
13+
jpegoptim optipng pngquant gifsicle \
14+
unzip \
15+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
16+
17+
RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl
18+
RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/
19+
20+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
21+
22+
23+
WORKDIR /var/www
24+
25+
COPY composer.json composer.lock ./
26+
27+
COPY . .
28+
#copy environment file
29+
COPY ./.env.example ./.env
30+
31+
RUN composer install
32+
33+
RUN php artisan key:generate --ansi
34+
35+
COPY ./script/php_script.sh /tmp
36+
37+
RUN chmod +x /tmp/php_script.sh
38+
39+
ENTRYPOINT ["sh","/tmp/php_script.sh"]
40+
41+
EXPOSE 8000

Dockerfile.node

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:14.15.0
2+
3+
WORKDIR /var/www
4+
5+
COPY package.json ./
6+
7+
RUN npm install
8+
9+
COPY . .
10+
11+
CMD npm run watch -- --watch-poll

LICENSE.txt

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

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# About Laravel+Vuejs+Docker+Docker compose
2+
3+
This project `laravel+Vuejs` is based on `docker and docker-compose`
4+
5+
6+
# <span style="color:#007bff"> Table of content </span>
7+
8+
- [Prerequisites](#Prerequisites)
9+
- [Technologies](#Technologies)
10+
- [Setup Environment](#Setup-Environment)
11+
- [License](#License)
12+
- [Contribute]
13+
14+
## Prerequisites
15+
---
16+
Make sure you have insalled the following prerequisites in your development or production machine.
17+
18+
- `Docker` - [Download & install Docker](https://docs.docker.com/get-docker/) make sure that the latest docker version has been installed on your machine.
19+
20+
### Technologies
21+
---
22+
List of technologies which are used in this project.
23+
- PHP : Version 7.3
24+
- Laravel: Version 8.x
25+
- MySQL: Version 8
26+
- Node: Version 14.15.0
27+
28+
### Setup Environment:
29+
---
30+
- Copy `.env.example` to `.env`.
31+
- Build `docker-compose build`.
32+
- Run `docker-compose up -d`.
33+
- Generate key `docker exec bakend-end php artisan key:generate`
34+
- If you want to install a npm package then run `docker exec front-end npm install <Package_Name>`.
35+
- If you want to install compose package then run `docker exec back-end compose install <PACKAGE_NAME>`.
36+
37+
## Contribute
38+
---
39+
Contribution are alwasy welcome! Please read the [contribution guidelines](contributing.md) first.
40+
- Fork this project to your personal account.
41+
- Create your feature branch `git checkout -b feature/foo`.
42+
- Commit your changes `git commit -am 'Add some foo`.
43+
- Push to the branch `git push origin feature/foo`.
44+
- Create a new Pull Request.
45+
46+
## License
47+
---
48+
The theme is available as open source under the terms of the [MIT License](LICENSE.txt).

0 commit comments

Comments
 (0)