File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 22
22
## Installation
23
23
24
24
- ` composer create-project --prefer-dist cretueusebiu/laravel-nuxt `
25
- - Edit ` .env ` to set your database connection details and ` APP_URL ` (the url to your Laravel application)
25
+ - Edit ` .env ` and set your database connection details
26
26
- (When installed via git clone or download, run ` php artisan key:generate ` and ` php artisan jwt:secret ` )
27
27
- ` php artisan migrate `
28
28
- ` npm install `
32
32
### Development
33
33
34
34
``` bash
35
+ # start Laravel
35
36
php artisan serve
37
+
38
+ # start Nuxt
36
39
npm run dev
37
40
```
38
41
39
- You can access your application at ` http://localhost:3000 ` .
42
+ Access your application at ` http://localhost:3000 ` .
40
43
41
44
### Production
42
45
43
46
``` bash
44
47
npm run build
45
48
```
46
49
47
- You can access your application the url you set ` APP_URL ` to.
48
-
49
50
### Enable SSR
50
51
51
- - Set ` ssr: true ` in ` client/nuxt.config.js `
52
+ - Edit ` client/nuxt.config.js ` and set ` ssr: true `
52
53
- Edit ` .env ` to set ` APP_URL=http://api.example.com ` and ` CLIENT_URL=http://example.com `
53
54
- Run ` npm run build ` and ` npm run start `
54
55
You can’t perform that action at this time.
0 commit comments