Ennovar / learn-angular2-laravel

A blog that uses Angular 2 as a frontend and larval as a backend. Used to teach how Angular can consume a Laravel api.
11 stars 2 forks source link

Two Separate Projects #4

Open AustinMCrane opened 8 years ago

AustinMCrane commented 8 years ago

should we make this two separate projects:

feel free to weigh in with a comment

malikatiq786 commented 7 years ago

how to run the angular site its just showing loading.. ?

AustinMCrane commented 7 years ago

@malikatiq786 you should be able to start the angular project with the following:

npm install
npm start
malikatiq786 commented 7 years ago

C:\wamp64\www\laravel_angular\client-ts>npm start

angular-quickstart@1.0.0 start C:\wamp64\www\laravel_angular\client-ts tsc && concurrently "tsc -w" "lite-server"

app/app.component.ts(1,25): error TS2307: Cannot find module 'angular2/core'. app/app.component.ts(5,46): error TS2307: Cannot find module 'angular2/router'. app/components/blog/blog.component.ts(1,32): error TS2307: Cannot find module 'angular2/core'. app/components/blog/blog.component.ts(4,85): error TS2307: Cannot find module 'angular2/router'. app/components/blog/blog.service.ts(1,30): error TS2307: Cannot find module 'angular2/core'. app/components/blog/blog.service.ts(2,39): error TS2307: Cannot find module 'angular2/http'. app/components/blog/blogform.component.ts(1,25): error TS2307: Cannot find module 'angular2/core'. app/components/blog/bloglist.component.ts(1,33): error TS2307: Cannot find module 'angular2/core'. app/main.ts(2,32): error TS2307: Cannot find module 'angular2/platform/browser'. app/main.ts(3,32): error TS2307: Cannot find module 'angular2/router'. app/main.ts(4,29): error TS2307: Cannot find module 'angular2/router'. app/main.ts(5,23): error TS2307: Cannot find module 'angular2/core'. app/main.ts(6,33): error TS2307: Cannot find module 'angular2/http'.

npm ERR! Windows_NT 10.0.10240 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v7.7.2 npm ERR! npm v4.1.2 npm ERR! code ELIFECYCLE npm ERR! angular-quickstart@1.0.0 start: tsc && concurrently "tsc -w" "lite-server" npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the angular-quickstart@1.0.0 start script 'tsc && concurrently "tsc -w" "lite-server" '. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the angular-quickstart package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! tsc && concurrently "tsc -w" "lite-server" npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs angular-quickstart npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls angular-quickstart npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! C:\wamp64\www\laravel_angular\client-ts\npm-debug.log

malikatiq786 commented 7 years ago

npm start is not working