Apache Kafka – Develop Producer Java application No.66

How to develop Producer application by Java on Visual Studio Code is shown in this blog. ▼1. Apache Kafka Ref: Apache Kafka ▼2. Prerequisites Install Apache Kafka 4 nodes No.42 Apache Kafka Word Count – Java No.44“2-3. Installing Apache Maven” ▼3. Develop Producer Java application This producer Java application write events from 1 to 100 into a topic. 3-1. Make a directoryMake a directory to develop an application. 3-2. Create a project using Apache Maven 3-3. Remove the App.java and AppTest.java files 3-4. Update pom.xml file Adding below in pom.xml(a part of pom.xml) Dependency Analytics Extension need to be installed on VS Code to check and update dependencies automatically. 3-5. … Continue reading “Apache Kafka – Develop Producer Java application No.66”

Java – Visual Studio Code on Ubuntu No.24

In this blog, How to run Java on Visual Studio Code on Ubuntu is shown. ▼1. Run Java using Visual Studio Code on Ubuntu Visual Studio Code is the developer tool provided by Microsoft. Visual Studio Code works on both Windows and Linux OS. in this case, VS Code is used on Ubuntu. ▼2. Prerequisites 2-1.Install Ubuntu Ubuntu 20.04.5 LTS 2-2. Setup Visual Studio Code 2-3. Install Java Extension Pack 2-4. Install JDK (OpenJDK 15) In this case, jdk-15.0.2+7 is under /home/user/Downloads/ path. 2-5. Set Environment variables for java.configuration.runtimes and java.home (e.g) { “java.home”:”/home/user/Downloads/jdk-15.0.2+7″, “java.configuration.runtimes”: [ { “name”:”JavaSE-15″, “path”:”/home/user/Downloads/jdk-15.0.2+7″ } ] } ▼3. Show Hello World by Java 3-1. Create … Continue reading “Java – Visual Studio Code on Ubuntu No.24”

React – Visual Studio Code on Ubuntu No.77

I will show you the development of a web site using React in Visual Studio Code on Ubuntu. ▼1. What is React ? React is JavaScript library developed by Facebook for building user interfaces. the details is written in this document. React – A JavaScript library for building user interfaces (reactjs.org) ▼2. Prerequisites 2-1. Creating React application https://releases.ubuntu.com/20.04/ 2-2. Installing Visual Studio Code https://code.visualstudio.com/docs/setup/linux 2-3. Installing curl 2-4. Installing Node.js and npm W can install Node.js JavaScript runtime and npm using the following commands. Ref:distributions/README.md at master · nodesource/distributions (github.com)Download | Node.js (nodejs.org) ▼3. Deploying Web site 3-1. Creating a React application We can create a React application under the … Continue reading “React – Visual Studio Code on Ubuntu No.77”

Rust – Visual Studio Code on Ubuntu No.76

I will show you the execute Rust programming language in Visual Studio Code on Ubuntu. ▼1. What is Rust ? Rust is blazingly fast and memory-efficient without no runtime or garbage collector. Rust is memory-safety and thread-safety. we can use Rust on performance critical services. Ref: https://www.rust-lang.org/ These toolsets are installed when Rust is installed. ▼2. Prerequisites 2-1. Installing Ubuntu 20.04.2 LTS https://releases.ubuntu.com/20.04/ 2-2. Install Visual Studio Code https://code.visualstudio.com/docs/setup/linux 2-3. Installing Rust Install Rust using the command (Ref) https://www.rust-lang.org/learn/get-started 2-4. Installing rust-analyzer Extension ▼3. Print “Hello World!” using Rust 3-1. Creating Rust code to show Hello World in web site. We use Cargo command to create a project. 3-2. Starting … Continue reading “Rust – Visual Studio Code on Ubuntu No.76”