cornflourblue / angular2-jwt-authentication-example

Angular 2/5 JWT Authentication Example
http://jasonwatmore.com/post/2016/08/16/angular-2-jwt-authentication-example-tutorial
MIT License
317 stars 185 forks source link

cli #8

Open defji opened 7 years ago

defji commented 7 years ago

How to add angular-cli to this project? (sorry, i'm noob)

ChadESmith42 commented 5 years ago

You can't directly add CLI from the terminal. However ...

Open your terminal. Navigate to the root folder that contains the application. Create a new Angular app, using the CLI: ng new angular8-jwt-authentication-example Follow the prompts. (Add routing, use CSS since the app is already css.) Copy all of the files in the old App folder into the new App folder.

Minor cleanup is to ensure the angular.json file has the correct references for styling/themes and dependencies.

Hope this helps!

I may be doing a PR for an Angular 8 update soon.