Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 2.16 KB

File metadata and controls

108 lines (72 loc) · 2.16 KB

Laravel with Angular Material

Simple and clean application using token based authentication with laravel and angular material. Easy to install and maintain.

Description

No description at the moment.

Contents

Features

  • Laravel 5.2 releases notes.
  • JSON Web Token Authentication.
  • Basic brute force prevention
  • Middleware for routes where tokens are prohibited.

Dependencies

Installing

Clone

Simply clone this project using the folowing command:

git clone https://github.com/rhberro/laravel-with-angular.git

Environment

Create a .env file by copying the .env.example file with the command:

cp .env.example .env

Install dependencies

Install dependencies with composer using composer install command:

composer install

Packages

Install npm dependencies by typing the folowing command:

npm install

Bower

Install angular and required libraries with bower:

bower install

Key

Generate unique application key with artisan by typing:

php artisan key:generate

Token

Generate a secret key for token authentication with the given command:

php artisan jwt:generate

Migration

Build the database with laravel migrations which provides the users table with:

php artisan migrate --seed

Run

You should now be able to serve your application with artisan and login. A database seeder provides an account for testing, but you can create your own.

User

laravel@gmail.com / laravel

Optional

Use the following command to generate an ide helper file with laravel-ide-helper, it provides an accurate autocompletion for laravel 5:

php artisan ide-helper:generate