Java Projects

image_pdfimage_print

Frontend Development for Web Pages

JSP (JavaServer Pages)

JSP enables you to write dynamic, data-driven pages for your Java web applications. JSP is a relatively simpler and older technology than JSF, which is the standard for Java web frameworks like Eclipse Mojarra, MyFaces, and PrimeFaces. While it is not uncommon to see JSP used as the frontend for older JSF applications, Facelets is the preferred view technology for modern JSF implementations.

  • JSTL
    • The JavaServer Pages Standard Tag Library (JSTL) is a collection of useful JSP tags which encapsulates the core functionality common to many JSP applications.
JSP How it works. License Picture : Matthew Tyson,

JSP How it works. License Picture : Matthew Tyson,

JSF (JavaServer Faces)

It is a server side component based user interface framework. It is used to develop web applications. It provides a well-defined programming model and consists of rich API and tag libraries. The latest version JSF 2 uses Facelets as its default templating system. It is written in Java.

  • PrimeFaces
  • RichFaces
  • OmniFaces

Example Code:

Database driven sites

You can use libraries those are already written for JAVA to manage MYSQL and other databases. But you can also use native php functions to access database. You can search at “composer“.

Mysql

MySQL is the most popular database system used with Java. Mysql is tunable easily by developers. Performance is well enough for simple JAVA  and Backend Systems.


For the projects, you can easily get backup of the mysql with Java. It is very easy to get data from mysql.

Hibernate Mysql

Lazy Load

Postgresql

Postgresql is an alternative to MYSQL, if you want more and more stability and some better advantages that you need and not available at MYSQL side.

Mysql is faster BUT Postgresql handles the Concurrency better, and heavy inserts more stable processed.

Cassandra

Cassandra is Nosql DATABASE. It is distributed and you can set the data replication factors and multi datacenter avalibilities.

You can download the drive here. DATASTAX

Service Based Java

Services are very important to create activities with 3rd parties. Your scripts can access the data from 3rd parties or can send data to them. For stability , realibility, and avalibility services are also used. You can create back-end servers to create services and your php front-end can access these servers to access data requests and responses. If you have billions of requests you can do load balancing.

Reference is ORACLE. PICTURE owner is

Owner of the picture is ORACLE. I copied from ORACLE

OAUTH – and V2

Oauth very important to access user data from 3rd parties. Such as If a user trying to register a web page over FACEBOOK, OAUTH can transfer the user data to the web page that user trying to register. Tokens or other mechanism used for validation exchanges.

User Account generates a cryptographically signed token which it hands off to the application to authenticate the user.

Here are the some important methods of the OAUTH

As you see above, it is saying, Disable redirects or get Last response, Auth type, Request tokens. Imagine that; You have 100 users trying to do outh in the same time. A lot of time saving for clients!.

Wikipedia : License

Spring Ampq

Spring Boot

 

Jetty

 

 

 

REST (REST or Representational State Transfer )

The objective is to build a RESTful web service in PHP to provide resource data based on the request with the network call by the external clients.

  • Create request URI with patterns that follow REST principles.
  • Make the RESTful service to be capable of responding to the requests in JSON, XML, HTML formats.
  • Demonstrate the use of HTTP Status code based on different scenarios.
  • Demonstrate the use of Request Headers.
  • Test the RESTful web service using a REST client.
RESTful-Style RPC-Style
Request URI The request URI will differ based on the resource. Same URI for all resources.
Request methods The service request parameters can be sent via GET, PUT, POST request methods. Supports only the POST method.
Service methods or handlers Same method for all resources. Methods and params are posted on request.
Target on The service request using this style targets resources. The target is methods.
Response data transmission Over HTTP wrapped with the requested methods and params.

 

License of the Picture: nordicapis.com

License of the Picture: nordicapis.com

 

kennethlange

License of the Picture : kennethlange

 

An alternative to REST, FACEBOOKS graphQL.

https://www.linkedin.com/pulse/daha-olgunla%C5%9Facakt%C4%B1k-richardson-muhammed-cuma-tahiroglu

License : https://www.linkedin.com/pulse/daha-olgunla%C5%9Facakt%C4%B1k-richardson-muhammed-cuma-tahiroglu

RPC is mostly related with actions.

SOAP

SOAP is an acronym for Simple Object Access Protocol. It is an XML-based messaging protocol for exchanging information among computers. SOAP is an application of the XML specification.

  • SOAP is easy to handle for security. Security at Rest little bit complex if you would like to do it.
  • SOAP using RPC(Remote Process Call) method. SOAP contains WS-* like security protocols, SOAP memorize the state information at requests and responses.
  • REST can work with JSON, XML and TEXT, SOAP should use XML. REST is more usefull in this case.
  • Data sizes are more smaller at REST, Traffic is lower, in this case REST is better.
  • For the performance, you should choose the REST.
  • REST using HTTP methods. GET,POST,PUT,DELETE etc.
  • REST is more easy to integrate

 

The Java Cryptography

Some of hthe liraes

  • Bouncy Castle
    • Bouncy Castle is a collection of APIs used in cryptography

Java Cryptography Extension (JCE)

The Java Cryptography Extension is an officially released Standard Extension to the Java Platform and part of Java Cryptography Architecture

 

X509

In cryptography, X.509 is a standard defining the format of public key certificates.

Scrum

 

composer Example loading php libraries. (require ‘vendor/autoload.php’;)

 

Java Reactive Programming

Reactive systems are

  • Responsive – systems should respond in a timely manner
  • Message Driven – systems should use async message-passing between components to ensure loose coupling
  • Elastic – systems should stay responsive under high load
  • Resilient – systems should stay responsive when some components fail

—————

 

 

—————

Document Management

For generation of the office documents and BI reports.

PHPOffice / PHPWord (Word and Office documents)

You can create office documents with this library. PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft Office Open XML (OOXML or OpenXML), OASIS Open Document Format for Office Applications (OpenDocument or ODF), Rich Text Format (RTF), HTML, and PDF.

For the Excel https://github.com/PHPOffice/PHPExcel

PDF Generation for Customers / FPDF

There are also other alternative PDF libraries are available, But here is most easiest one.

XML – XSLT – XSD validations

For the some of the backend services you need to validate the XML.

 

 

Frameworks

Every developer can write own Framework. I have my own framework for E-Commerce / Crm systems

kcrm

Kcrm is private framework developed by Kutay ZORLU to FAST build CRM front-end applications. Advantages

  • Built in REST services for Customer DATA
  • Automatic Back-End failure detection and finding next Backend for Transactions
  • Streaming Libraries impletemented, Data download, Data Stream, Data Upload
  • Perfect design for CRM / ERP System coding.
  • Invocing API implemented
  • Usufull with multiple Data resources
    • You can use, Mysql, REdis, Postgresql, Cassandra, and REST in the same time !
  • FAST. Not loading toooo many libraries. Its using only what it needs.
  • Caching library implemented.
  • …. more and more.

Smarty

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation.

Here is the sample Description : https://www.smarty.net/sampleapp1

 

Laravel

 

Example Mongo DB usage with Laravel composer require jenssegers/mongodb

Laravel Side Config/database.php

 

Phalcon

Phalcon is an open source full stack framework for PHP, written as a C-extension. Phalcon is optimized for high performance. Its unique architecture allows the framework to always be memory resident, offering its functionality whenever it’s needed, without expensive file stats and file reads that traditional PHP frameworks employ.Phalcon is an open source full stack framework for PHP, written as a C-extension. Phalcon is optimized for high performance. Its unique architecture allows the framework to always be memory resident, offering its functionality whenever it’s needed, without expensive file stats and file reads that traditional PHP frameworks employ.

 

E-Commerce Systems

  • XT-Commerce
  • JTL WAVI – Web Service Development + XT- Commerce
  • WordPress
  • Gambio Installation
  • Magento
  • Modified E-Commerce
  • B2B-E-Commerce

 

Code Guide Lines (richtlinien)

Object Oriented PHP

OOP is very important if your project becomes bigger and more complex. Clean programming and management of the classes are becoming very hard to handle. Composer is one of the best helper for php developers.

Modal view controller

Most important think for Development. MVC in PHP

Development with Source Code Controlling

  • GIT

 

 

ALL RIGHTS RESERVED

KUTAY ZORLU