Git Product home page Git Product logo

angular-laravel's Introduction

AngularLaravel

This project was generated with Angular CLI version 9.0.0-rc.3.

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.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

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 to install packages.
yarn
  • Download laravel-api, which i used as a RESTful api and follow the instructions to run your api.
  • You may change the api url in environment file.
  • Run your angular app by this command
yarn start
  • You have to login or register to view all books
  • The book url is http://localhost:4200/admin/book

Enjoy!

angular-laravel's People

Contributors

angular-cli avatar eliyas5044 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular-laravel's Issues

package-json

it is missing in package.json these dependencies:
jquery
tether
bootstrap

Problem with JSON.parse

I tried to create wrong case login or register but this app didn't show the error messages.
After some minutes diving in code, I saw that it is having error at const errors = JSON.parse(err.error);

Error message:

angular_error

Should replace with const errors = err.error; instead.
File need fix:

  • book.component.ts
  • login.component.ts
  • register.component.ts

Unexpected token error

I get an error Unexpected token {

C:\xampp\htdocs\angular-laravel-master>ng serve Unexpected token { SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:414:25) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\node_modules\@ngtools\webpack\src\index.js:6:10) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\models\webpack-build-typescript.js:3:17) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\models\webpack-config.js:2:34) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\tasks\build-webpack.js:6:24) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Object.<anonymous> (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\commands\build.js:4:23) at Module._compile (module.js:435:26) at Object.Module._extensions..js (module.js:442:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.require (module.js:366:17) at require (module.js:385:17) at Class.module.exports.includedCommands (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\addon\index.js:21:16) at C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\ember-cli\lib\models\project.js:335:61 at Array.forEach (native) at Project.addonCommands (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\ember-cli\lib\models\project.js:334:15) at Project.eachAddonCommand (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\ember-cli\lib\models\project.js:369:30) at module.exports (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\ember-cli\lib\cli\lookup-command.js:33:13) at CLI.<anonymous> (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\ember-cli\lib\cli\cli.js:43:26) at tryCatch (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:539:12) at invokeCallback (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:554:13) at publish (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:522:7) at flush (C:\xampp\htdocs\angular-laravel-master\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:2374:5) at doNTCallback0 (node.js:417:9) at process._tickCallback (node.js:346:13)

Endless Loop after Login

Thanks for this package, I've really learned lots about Angular with this.

However, I'm facing a frustrating situation, and I think it's related to the routing but unclear how to resolve it. After logging in, the app goes into an endless loop always trying to go back to /login and because the user is logged in, keeps checking and redirecting forever.

Is this an issue with the package or my implementation?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.