You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,10 @@ yarn
78
78
```shell
79
79
php artisan key:generate
80
80
```
81
+
1. Generate a new secret key for JWT authentication (Used by the admin app)
82
+
```shell
83
+
php artisan jwt:secret
84
+
```
81
85
1. Configure a Database. You can safely choose SQLite if you are testing locally, but you must choose MySQL if you are deploying to production.
82
86
83
87
* SQLite: Configure Laravel to use ```sqlite``` in ```.env``` file
@@ -94,7 +98,7 @@ yarn
94
98
DB_USERNAME=homestead
95
99
DB_PASSWORD=secret
96
100
```
97
-
101
+
98
102
1. Run Laravel migrate to initialize database tables
99
103
```shell
100
104
php artisan migrate
@@ -140,10 +144,10 @@ Push changes to your Fork on GitHub
140
144
git push
141
145
```
142
146
143
-
Browse to your branch on GitHub, make sure your commit(s) were pushed to GitHub,
147
+
Browse to your branch on GitHub, make sure your commit(s) were pushed to GitHub,
144
148
then click "Compare and Pull Request", type a Title and Description, then click "Create pull request".
145
149
146
150
## Notes
147
-
Most of the app is a standard Laravel project. The only non standard (because there isn't a standard) is the Angular admin app. The root `package.json` file and `.angular-cli.json` are for the Angular project and their placement in the root directory allows us to run Angular commands without having to be in the Angular project folder. The rest of the Angular project is contained within `resources/assets/angular` and when the app is built, the output is copied to `public/dist`.
151
+
Most of the app is a standard Laravel project. The only non standard (because there isn't a standard) is the Angular admin app. The root `package.json` file and `.angular-cli.json` are for the Angular project and their placement in the root directory allows us to run Angular commands without having to be in the Angular project folder. The rest of the Angular project is contained within `resources/assets/angular` and when the app is built, the output is copied to `public/dist`.
148
152
149
-
For the Laravel app to serve the Angular app, there is a catch all route in `routes/web.php` that returns `public/dist/index.html`. We still have the ability to use normal Laravel blade views. We just have to declare their routes before the catch all route.
153
+
For the Laravel app to serve the Angular app, there is a catch all route in `routes/web.php` that returns `public/dist/index.html`. We still have the ability to use normal Laravel blade views. We just have to declare their routes before the catch all route.
0 commit comments