Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Tuesday, December 18, 2018

NativeScript/Angular for dummies (practical guide)


Soo I begin to wonder what to write next and the response now that I know that Phone/Cordova it's a stinky pile of s... is clear to me now...

This is a thing that I'll surely regret try or write for in some years but let's begin with some easy tutorial for NativeScript.

The way I see it the only cool wat to see this is via the internal app for the playground of the team: Playground NAtivescrip Android for practically we will use Android because we all know that iOS sucks. First, let's install the CLI
npm install -g nativescript
The requirements for a full build of an app are here:
https://docs.nativescript.org/angular/start/quick-setup
Then we proceed to make a new app:
tns create HelloWorld --template tns-template-blank-ng
And for last we try to see our magnificent app in the preview panel:
tns preview
This will throw a QR code that we can scan with our playground app and the app will just pop up in the phone. Well, that's for now, a little guide to make a new app in NativeScript/Angular. See you next time.

Saturday, May 25, 2013

Next app...



I'm having a new app deploying to the Android Play Store. This experiment it's a result of Node.js, Heroku and Android.
The app gets his resources from a scrapper in node.js, with a timer for working some times in the week, i will give some explanation of how this works later on.

The app saves every value the app needs into a MongoDB database, and the second server delivers this data to the Android client via Json and Rest techniques that gives some velocity to develop of the server and adds simplicity that can be lost in more complex models. This is all for now I'll post some code in short.

Bye



  

Deploying my little node.js server to Heroku

Once I got every piece of my app in node.js working. 
I though on deploying  and the best way to do so for me for the scalability and easiness only Heroku comes to my mind:











So lets prepare the environment:

First we open an account on https://www.heroku.com/

Once we have it we need to install the Heroku client the tools for making a deploy https://toolbelt.heroku.com/

Now lest start...

Lets strep into the folder :
>cd myapp

Add everyting to git:
>git init
>git add .
>git commit -m "first commit"

In case of not having an app 
>heroku create

In the case of having an app lets add it wit the name
>heroku git:remote -a myapp

The app needs two things before the upload a:  


  • Procfile : A single file indicating wich file the server must start, with the command web: node server.js 

  • And a Package.json a json structured file indicating name version and package dependencies it must be something like this
        {
            "name": "NodejsServer",
            "version": "0.0.1",
            "dependencies": {
                "express": "3.1.x"
            },
            "engines": {
                "node": "0.10.x",
                "npm": "1.2.x"
            }
        }


Now lets deploy, it's so simple as this...
>git push heroku master

Heroku alone will install the dependencies via the data in the Package.js and then run the app from server.js as it says in the Procfile.


Happy deploy.... bye!

The Video converter I needed

Handbrake it's an open-source video transcoder and a lifesaver!  For people that don't have a lot of time for transcoding or don...