/angular-laravel

This is an application where angular as front-end and laravel as back-end

Primary LanguageTypeScript

Angular

This project was generated with Angular CLI version 1.4.4.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

angular-laravel

  • First clone via git bash or download.
  • Go to your root folder and run this command
npm install
  • Download laravel-api, which i used as a RESTful api.
  • You have to change the api url private url = 'http://laravel-api.dev'; in two files, auth.service.ts and book.service.ts.
  • Run your angular app by this command
ng serve -o
  • You have to login or register to view all books
  • The book url is http://localhost:4200/admin/book

Enjoy!