Author: Ali Shirzad

What is Kotlin and kotlin-js

What is Kotlin Kotlin is an object-oriented programming language, OOP, which supports higher order functions and lambdas. I won’t go in details about the OOP here but you can read more on Wikipedia article Kotlin is also statically typed programming language to build multi-platform application These platforms include: JVM (Java Byte-Code) Web browser (JavaScript and Web-Assembly) Native byte codes These features about Kotlin makes it powerful language to develop complex application with easy, readable and testable code.   Power of Kotlin with JavaScript and Html DSL One of the best thing about Kotlin is that you can trans-compile...

Read More

Spring Boot Kotlin js Demo Project

Spring Boot Kotlin js Project This project is an application skeleton for a full-stack spring boot app written entirely with Kotlin. Spring Boot Server side and UI component written with Kotlin Source Code on GitHub Full Tutorial Spring Boot app with Kotlin and Kotlin.js What’s in this project? spring-boot app to run server Kotlin js to write UI components Kotlin Dependencies gradle to compile/transcompile kotlin to js How to Use: Compile Kotlin to JS using gradle $ ./gradlew build Run Spring Boot Server $ ./gradlew bootRun Kotlin official site...

Read More

Writing files in Node.js

Writing to files in Node.js is fairly easy thanks to provided File System APIs, node fs. Asynchronously writes data to a file, replacing the file if it already exists. data can be a string or a buffer. The encoding option is ignored if data is a buffer. It defaults to 'utf8'. Example: fs.writeFile('message.txt', 'Hello Node.js', function(err) { if (err) throw err; console.log('The file has been saved!'); }); Full Example: 1.  import file system module var fs = require('fs') 2.  Now use fs to create a new file and write into it fs.writeFile("/tmp/test.json", "{'key':'value'}", function(err) { if(error) { return console.log(error); } console.log("successfully saved test.json file"); }); Now Asynchronously reads the entire contents of a file. fs.readFile("/tmp/test.json", function(err, data) { if (err) throw err; console.log(data); });...

Read More

Getting Started With Angular 4 & Angular CLI

Today we are going to learn how to use Angular 4 CLI to bootstrap a simple Angular JS application. Angular CLI can make it very easy to create a project, add files, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.   Let’s learn how to get started with Angular 4 & Angular CLI First make sure you have installed least node 6.9.x and npm 3.x.x by running node -v and npm -v in a terminal/console window. Older versions produce errors, but newer versions are fine.   Then install Angular CLI globally using: npm install -g @angular/cli Generate your Project Generating an project is very...

Read More

kotlin node.js seed project

Kotlin Node.js Seed Project This project is an application skeleton for a typical Node.js app written entirely with Kotlin. Demo: Node.js app written with Kotlin Full Tutorial coming soon What’s in this project? express.js to run server ejs templating engine for express.js Kotlin Dependencies gradle to compile/transcompile kotlin to js How to Use: Install Node dependencies $ npm install Compile Kotlin to JS using gradle $ ./gradlew build Run Server $ node ./server/app.js Kotlin official site...

Read More

File Transfer App

FileTransfer by TechPrd

Access your mobile files over WiFi