File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 2222## Installation
2323
2424- ` 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
2626- (When installed via git clone or download, run ` php artisan key:generate ` and ` php artisan jwt:secret ` )
2727- ` php artisan migrate `
2828- ` npm install `
3232### Development
3333
3434``` bash
35+ # start Laravel
3536php artisan serve
37+
38+ # start Nuxt
3639npm run dev
3740```
3841
39- You can access your application at ` http://localhost:3000 ` .
42+ Access your application at ` http://localhost:3000 ` .
4043
4144### Production
4245
4346``` bash
4447npm run build
4548```
4649
47- You can access your application the url you set ` APP_URL ` to.
48-
4950### Enable SSR
5051
51- - Set ` ssr: true ` in ` client/nuxt.config.js `
52+ - Edit ` client/nuxt.config.js ` and set ` ssr: true `
5253- Edit ` .env ` to set ` APP_URL=http://api.example.com ` and ` CLIENT_URL=http://example.com `
5354- Run ` npm run build ` and ` npm run start `
5455
You can’t perform that action at this time.
0 commit comments