Skip to content

Commit 2f58515

Browse files
author
Levi Zitting
committed
Update README to reflect new step necessary for JWT auth
1 parent 85100db commit 2f58515

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ yarn
7878
```shell
7979
php artisan key:generate
8080
```
81+
1. Generate a new secret key for JWT authentication (Used by the admin app)
82+
```shell
83+
php artisan jwt:secret
84+
```
8185
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.
8286

8387
* SQLite: Configure Laravel to use ```sqlite``` in ```.env``` file
@@ -94,7 +98,7 @@ yarn
9498
DB_USERNAME=homestead
9599
DB_PASSWORD=secret
96100
```
97-
101+
98102
1. Run Laravel migrate to initialize database tables
99103
```shell
100104
php artisan migrate
@@ -140,10 +144,10 @@ Push changes to your Fork on GitHub
140144
git push
141145
```
142146

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,
144148
then click "Compare and Pull Request", type a Title and Description, then click "Create pull request".
145149

146150
## 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`.
148152

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

Comments
 (0)