Getting started with Neutralinojs cloud preview version and AWS EC2
Getting started with Neutralinojs cloud preview version + AWS EC2
We have a existing news 🤩 , Neutralinojs cloud preview version is released!. Today I am going to show you how to run neutralino cloud on AWS EC2.One of my previous article said about an experiment that gives full access to virtual machine to frond end users. So we have developed something more and released v1.0.4-alpha with the features as per below.Blacklisting specific functionsTwo modes — desktop and cloudJumping In to the Game..So very first.. If you don’t have an AWS account and you are an undergraduate, simply apply AWS Educate and get free credits 😍.Creating an EC2 instanceCreate an instance using a fresh Ubuntu image because neutralinojs supports Linux.Connect with PuTTYUse PuTTY ssh client if you are using windows otherwise use ssh command on Linux.Exposing port to outsideDefault port of neutralino is 8080 (You can set another by editing settings.json). Then we need to add inbound TCP rule in AWS.Click instance -> select security group -> edit inbound rules -> Add ruleSo now anybody from outside has access to 8080 portSetting up neutralinojsssh into instance and continue with these commands.Download and extract Neutralinojs-v1.0.4-cloud.zipwget https://github.com/neutralinojs/neutralinojs/releases/download/v1.0.4-alpha/Neutralinojs-v1.0.4-cloud.zipunzip Neutralinojs-v1.0.4-cloud.zipStart neutralinojschmod 770 neutralino./neutralinoGo ahead and open your browser, type <public dns or public ip> :8080/myappCloud configurationSee app/settings.json configuration file{    "appname" : "myapp",    "appport" : "8080",    "mode" : "cloud",    "cloud" : {        "blacklist" : ["os.runCommand"]    } }mode is set in to cloud. it will disable self killing feature(Removing neutralino server process when browser is closed) and it will check blacklist per each os native call.Testing blacklistOpen console and play with this snippetNeutralino.os.getEnvar('USER', (e)=>{console.log(e)}, ()=>{})Obviously this one will return ubuntu 😋Hm.. play with this tooNeutralino.os.runCommand('ls', (e)=>{console.log(e)}, ()=>{})No you can’t 😎 it gives this response{    error: "Cloud permission error!"}This is because we added os.runCommand to blacklistUsage of neutralino cloudIf you want to take control of your virtual machines or bare metal servers or even your computer inside a private network give a try with neutralinojs cloud.Also for controlling your devices withing a private network using mobile app. cool! you can use neutralinojs easily.I’ll come with another article and show you cool scenario to apply neutralinojs cloud 😎.ConclusionNeutralinojs is still under development process and all releases are unstable. We are planning to develop macos implementation too. Thus there are few issues with Linux version too.Give us a star! 😍 support us..Happy coding!!