1)Download angular js from

2)Place the angular.min.js in C:\xampp\htdocs\angular

3)Save html files in the same location

4)Start Apache server in xampp

5)Open html fie in browser

6) Use F12 key to view console in we browser

MAC OS – Usage

windows key + space => spotlight

spotlight -> used to search files in the system

ctrl + i or right click folder->get info => To get info of a folder

Create Maven Project using Terminal

admins-Mac-mini-2:~ admin$ mvn -v
Apache Maven 3.0.3 (r1075438; 2011-02-28 23:01:09+0530)
Maven home: /usr/share/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: “mac os x”, version: “10.8.5”, arch: “x86_64”, family: “mac”

admins-Mac-mini-2:~ admin$ mvn archetype:generate -DartifactId=consumerBanking -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

admins-Mac-mini-2:~ admin$ pwd
admins-Mac-mini-2:~ admin$ ls ~/.m2/
admins-Mac-mini-2:~ admin$ cd .m2
admins-Mac-mini-2:.m2 admin$ cd repository
admins-Mac-mini-2:repository admin$ ls
antlr commons-logging
asm dom4j
backport-util-concurrent jdom
classworlds junit
com log4j
commons-cli net
commons-codec org
commons-collections xml-apis
commons-io xpp3
admins-Mac-mini-2:repository admin$

Laravel – Model and Controller

C:\Users\EP\book>php artisan make:controller UserAccountController –resource –model=UserAccount

A App\UserAccount model does not exist. Do you want to generate it? (yes/no) [yes]:
> yes

Model created successfully.
Controller created successfully.

Laravel – Route

C:\Users\EP\blog>php artisan route:list
| Domain | Method | URI | Name | Action | Middleware |
| | GET|HEAD | / | | Closure | web |
| | GET|HEAD | api/user | | Closure | api,auth:api |
| | GET|HEAD | api/users | users.index | App\Http\Controllers\UserAccountController@index | api |
| | POST | api/users | | App\Http\Controllers\UserAccountController@store | api |
| | GET|HEAD | api/users/create | users.create | App\Http\Controllers\UserAccountController@create | api |
| | GET|HEAD | api/users/{user} | | App\Http\Controllers\UserAccountController@show | api |
| | PUT|PATCH | api/users/{user} | users.update | App\Http\Controllers\UserAccountController@update | api |
| | DELETE | api/users/{user} | users.destroy | App\Http\Controllers\UserAccountController@destroy | api |
| | GET|HEAD | api/users/{user}/edit | users.edit | App\Http\Controllers\UserAccountController@edit | api |

JFrog Software Setup

SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0_102
SET M2_HOME=D:\Softwares\maven

Step 1: Download and Extract to D:\Softwares ($;bt_package=jfrog-artifactory-oss-zip)
Step 2: Run bat file(double click) -> D:\Softwares\jfrog-artifactory-oss-5.1.3\artifactory-oss-5.1.3\bin\artifactory.bat
Note: artifactory.bat should be running
Step 3: Successfully Installed
o http://localhost:8081/artifactory/webapp/#/home
o In welcome screen -> click next->Password admin and select maven, gradle repositories
Step 4: click artifacts->select libs-release->Set Me Up -> Generate Maven Settings->Generate Setting -> Download Snippet
Step 5: Copy the attached settings.xml in Maven Folder (.m2 folder)

Note: Replace username and password as admin and also localhost to common server IP in attached settings.xml

Maven Projects:
Step 1: Create a Maven Project
mvn archetype:generate -DartifactId=consumerBanking -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Step 2: It will download jars from internet and place the jars in common server
In C:\Users\Janani\consumerBanking
Step 3: add distribution management in pom

Laravel Project (MVC) – Beginning

create database lms_laravel_db;

CREATE TABLE user_account(
email_id VARCHAR(200) NOT NULL,

download composer and install

download laravel
C:\Users\EP>composer global require “laravel/installer”

create project
C:\Users\EP>composer create-project –prefer-dist laravel/laravel blog
Note:–(double hyphen) before prefer
C:\Users\EP\blog\.env, edit the following

C:\Users\EP\blog\config\database.php, edit mysql
Note:/*comment all other database */

C:\Users\EP>cd blog

C:\Users\EP\blog>php artisan serve
Laravel development server started:

In chrome,

C:\Users\EP\blog>php artisan make:model UserAccount
Model created successfully.
In C:\Users\EP\blog\app\UserAccount, edit the model

namespace App;
use Illuminate\Database\Eloquent\Model;
class UserAccount extends Model
    protected $table = 'user_account';
    protected $primaryKey = 'id';

C:\Users\EP\blog>php artisan make:controller UserAccountController –resource
Controller created successfully.
Note:–(double hyphen) before resource

C:\Users\EP\blog\app\Http\Controllers\UserAccountController, edit the controller

namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class UserAccountController extends Controller
     * Display a listing of the resource.
     * @return \Illuminate\Http\Response
    public function index()
        $list = DB::table('user_account')
		->select ('id', 'name', 'email_id', 'password')
    	return response()->json($list);

C:\Users\EP\blog\routes\api.php, edit the api.php

Route::resource(‘users’, ‘UserAccountController’);


Maven – Introduction

Maven Project

Download mysql connector jar
right version ???
– manual download
– version may change day wise
– manual add jars

Open source companies published jar in Maven
– auto download
– download recent version
– jars added automatically
– internet connection is required
– jars will be downloaded to local repository
NOTE: consecutive download will check in local
If not present then Maven downloads from internet

Maven Project Steps
1) Create File -> Other -> New Maven Project
2) Group id
– com.janani
3) Artifact id
– bookapp
4) Folder Structure
– src -> main -> java ( Business Logic Files ) ( it will be jar)
– src -> test -> java ( Test Files )
5) pom.xml
– group id
– artifact id
– version (major.minor.defect)
– to download recent jars from internet

1) mysql connector(C:\Users\EP\.m2\repository\mysql\mysql-connector-java\6.0.5)
2) lombok
3) commons dbcp2
4) spring-jdbc
NOTE: download from central

Downloaded Jars will be available in local repository
– C:\Users\JananiVelmurugan\.m2\repository

Maven Life Cycle
– mvn clean
– mvn compile
– mvn test
– mvn package
– mvn install

Maven Steps
– Right click project -> Run as -> maven clean

– Should able to create maven core project
– Should able to create maven web project

1) Create database and tables
2) Create a maven core project
2.1) Add maven dependencies
2.2) Add properties
2.3) Right click project -> Maven -> Update Project
2.4) Right click project -> Run as -> Maven Install
2.5) Create packages and classes in src\main\java
2.6) Create test classes in src\test\java

create xampp->htdocs-> create a new folder