Skip to content

RESTful backend with Laravel 5.3 and Angular 2 as frontend

License

abrarShariar/laravel-angular2-REST

Repository files navigation

laravel-angular2-REST

RESTful backend with Laravel 5.3 and Angular 2 as frontend

  • The ng2 directory hosts the Angular 2 app

  • Other directories/files in the project root belongs to Laravel (5.3)

RESTful Backend with Laravel 5.3

  • Some of the config files are not in the repo since they are kept as is out-of-the-box.

  • Config your database:

./config/database.php	./env 
  • Database schema is as follows:
Schema::create('employee', function (Blueprint $table) { $table->increments('id'); //primary key + auto increment $table->string('firstname'); $table->string('lastname'); $table->date('DOB'); $table->string('description',100); $table->timestamps(); //'created_at' 'updated_at' cols
  • Perform migration:
php artisan migrate
php artisan db:seed --class="EmployeeTableSeeder"
  • Now run php artisan serve in the project root and you will be Up and Running !!

About

RESTful backend with Laravel 5.3 and Angular 2 as frontend

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published