B4J Tutorials

[SithasoDaisy] How to implement Facial Recognition Authentication in your Web App

Hi Fam

One is able to implement facial recognition authentication without having to use a password, email etc, but facial recognition.

You will need https://faceio.net/

It has an easy to...
 

[SithasoDaisy] - PocketBase - How to create a Web Push Notification Server with PocketBase SSE

Hi there

By the end of this, you should be able to have your own Web Push Notification Server running. Below is an example of a notification coming from a cloud deployed PocketBase server...
 
Last edited:

[SERVER] Valid SSL certificate for localhost for your development machine

So I was intrigued that I couldn't have a valid ssl cert for localhost so what I did might be useful to someone:

--- THIS IS DONE IN LINUX ---

1. Generate a RSA-2048 key and save it to a file...
 

[server] Using UI app to create a QR code as part of a server solution

Online example: https://b4x.com:51041/qrgenerator/index.html

1603281845993.png


A question was posted about generation of QR codes in a server solution...
 

Attachments

  • QRGenerator.bas
    3.6 KB · Views: 412
Last edited:

[Server] Using Let's Encrypt on Ubuntu VPS

So I have created a few JRDC2 apps. I put them on a VPS as live demo. It is running on Ubuntu 18.04 64 bit. Today I wanted to make the app more secure by...
 

[Server] Upload files from your B4A app to your B4J server over the internet

This example shows how to make your B4J server application accessible over the internet.

The implemented server is a simple file server that allows you to upload files from your B4A application...
 

Attachments

  • FileClient-B4A.zip
    7.5 KB · Views: 4,843
  • FileServer-B4J.zip
    4.3 KB · Views: 5,137

[Server] Table report with Export feature

Attachments

  • TableExample.zip
    5.7 KB · Views: 1,108

[Server] SSL Connections

Starting from B4J v2.00 the server can listen to two ports, the standard insecure port (http) and a secure port (https).

The default port for http is 80 and for https is 443. These ports are used...
 
Last edited:

[Server] Send and receive objects

This is an old example. Better use B4XSerializator to serialize objects.

One of the nice things about using B4J server as the backend of B4A applications is that you can send and receive...
 
Last edited:

[Server] Screen capture server

This is a simple server that takes a screenshot of the current desktop screen and returns the image as the response.

For example if you call it from the device browser:

upload_2014-1-30_16-26-52.png


The handler...
 

[Server] Screen Capture & FTP

Last edited:

[server] Run a Server on Azure as an App Service

Since Azure supports Jetty, a B4J server app can also run on azure.

1. Search jetty in the marketplace and create a web app service...
 

Attachments

  • search.png
    search.png
    41.4 KB · Views: 1,381
Last edited:

[server] Run a Server on a VPS

The steps required to run a B4J server on a hosted server (such as a VPS) are:

1. Download Java...
 
Last edited:

[Server] Regex Tool

Attachments

  • regex.zip
    2.4 KB · Views: 961

[Server] Performance measures

B4J server library is based on an open source project named Jetty.
Jetty server performance is excellent which means that B4J server performance is also excellent.

The following numbers are the...
 

[Server] Packaging OpenJDK for Server App

I couldn't find this on the forum but if you are looking to package your server (non-UI) app with Java 11 (OpenJDK) then you should be aware there is no JRE per se.

I came across an article (link...
 

[Server] Online Json Tree Example

Attachments

  • ServerJsonTree.zip
    7.7 KB · Views: 1,526
Last edited:

[Server] Login System & Filters Tutorial

Attachments

  • LoginExample.zip
    11.7 KB · Views: 2,184
Last edited:

[server] jOkHttpUtils2 - server version

OkHttpUtils2 methods are designed to be called on the main thread. This is the case in all platforms and configurations, except of B4J server solutions.

Starting from jOkHttpUtils2 v2.95 it is...
 
Last edited:

[server] Http/2 Configuration

Attachments

  • Http2.zip
    1.3 KB · Views: 981
Last edited:
Top