Simple and clean application using token based authentication with laravel and angular material. Easy to install and maintain.
No description at the moment.
- Laravel 5.2 releases notes.
- JSON Web Token Authentication.
- Basic brute force prevention
- Middleware for routes where tokens are prohibited.
Simply clone this project using the folowing command:
git clone https://github.com/rhberro/laravel-with-angular.git
Create a .env file by copying the .env.example file with the command:
cp .env.example .env
Install dependencies with composer using composer install command:
composer install
Install npm dependencies by typing the folowing command:
npm install
Install angular and required libraries with bower:
bower install
Generate unique application key with artisan by typing:
php artisan key:generate
Generate a secret key for token authentication with the given command:
php artisan jwt:generate
Build the database with laravel migrations which provides the users table with:
php artisan migrate --seed
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.
laravel@gmail.com / laravel
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