Skip to content

cloud-bee/Angular-with-laravel-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Angular-with-laravel-API

Design

Angular Material 7.3.1 design components built with frontend.

Requirements

Installation

Clone the repository using the clone URL in the "Clone with HTTPs" section of the project and install the dependency.

For that follow the below command:

Backend Dependency Installation:

composer install

For more information about Composer usage, check their official documentation.

Frontend Dependency Installation (Angular)

npm install

For more information about npm usage, check their official documentation.

Laravel Environment Setup

Generate the .env file by running:

cp .env.example .env

Update the database name and password in the .env file and run:

$ php artisan migrate:fresh --seed

To publish the configuration file in Laravel, you have to run below line of the code:

$ php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"

When it's done, set the jwt-auth secret:

$ php artisan jwt:secret

Do you need to more details of laravel jwt-auth dependencey, Chack https://jwt-auth.readthedocs.io/en/develop/

Processing by API URL

Change the api url in the proxy.conf.json file, and do you want to change the API Url requested process. follow the angular documentation https://angular.io/guide/build

{
    "/api/*": {
      "target": "http://localhost:8000", // API URL
      "secure": false,
      "logLevel": "debug"
    }
}

Run the server using the command: "ng serve --open" for the Frontend.

For more information about Angular usage, check their official documentation.

Issue Reporting

If you have found a bug or feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.

Releases

No releases published

Packages

No packages published