Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit 095d0c7

Browse files
committed
Add installation manual
1 parent 1e84dc4 commit 095d0c7

File tree

6 files changed

+81
-93
lines changed

6 files changed

+81
-93
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
/node_modules
33
/public/hot
44
/public/storage
5+
/public/mix-manifest.json
6+
/public/images
7+
/public/js
58
/storage/*.key
69
/vendor
710
.env

Diff for: README.md

+50-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1-
### Laravel VueJS Starter Kit
1+
## Laravel VueJS Starter Kit
22

3-
Coming soon...
3+
Features
4+
5+
* [Laravel 8.x](https://laravel.com/docs/8.x/installation)
6+
* [Sail (PHP 7.4)](https://laravel.com/docs/8.x/sail)
7+
* [VueJS 2.x](https://vuejs.org/v2/guide/)
8+
* [Vuex](https://vuex.vuejs.org/)
9+
* [Vue Router](https://router.vuejs.org/)
10+
11+
### Installation
12+
13+
Clone this repository
14+
15+
```shell
16+
git clone [email protected]:andriichuk/laravel-vue-js-starter-kit.git
17+
```
18+
19+
Up Docker containers for the first time
20+
21+
```shell
22+
composer install
23+
24+
./vendor/bin/sail up
25+
```
26+
27+
Install composer dependencies in the next time
28+
29+
```shell
30+
./vendor/bin/sail composer install
31+
```
32+
33+
Fill in environment variables
34+
35+
```shell
36+
cp .env.example .env
37+
```
38+
39+
Install and run `npm` watch task
40+
41+
```shell
42+
./vendor/bin/sail npm install && npm run watch
43+
```
44+
45+
Update `hosts` file
46+
47+
```text
48+
127.0.0.1 laravel.test
49+
```
50+
51+
Open [laravel.test](http:://laravel.test) in the browser

Diff for: public/mix-manifest.json

-4
This file was deleted.

Diff for: resources/views/app.blade.php

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!doctype html>
2+
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
7+
<!-- CSRF Token -->
8+
<meta name="csrf-token" content="{{ csrf_token() }}">
9+
10+
<title>{{ config('app.name', 'Laravel') }}</title>
11+
12+
<!-- Fonts -->
13+
<link rel="dns-prefetch" href="//fonts.gstatic.com">
14+
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
15+
16+
<!-- Styles -->
17+
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
18+
</head>
19+
<body>
20+
<noscript>
21+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
22+
</noscript>
23+
<div id="app"></div>
24+
<script src="{{ mix('/js/main.js') }}"></script>
25+
</body>
26+
</html>
27+

Diff for: resources/views/layouts/app.blade.php

-84
This file was deleted.

Diff for: routes/web.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@
1313
|
1414
*/
1515

16-
Route::get('/', function () {
17-
return view('layouts.app');
18-
});
16+
Route::view('/', 'app');

0 commit comments

Comments
 (0)