Mongoose

Mongoose allows us to have access to the MongoDB commands, to include mongoose library type in your terminal: npm install mongoose --save In order to use mongoose in your js, you need: //Grab it in our project var mongoose = require('mongoose') //Connect to a MongoDB database mongoose.connect('mongodb://localhost/mongoosedb') //Create an Schema (is what is used to define attributes for our documents) var Schema = mongoose.Schema //A model using it var Person = mongoose. [Read More]

Inquirer & Callback

Inquirer.js strives to be an easily embeddable and beautiful command line interface for Node.js Inquirer.js should ease the process of: Providing error feedback Asking questions Parsing input Validating answers Managing hierarchical prompts In order to install inquirer type in your terminal: npm install inquirer --save Usage prompt functionality: var inquirer = require("inquirer"); inquirer.prompt([/* Pass your questions in here */], function( answers ) { // Use user feedback for... whatever!! }) Let’s consider the following code: [Read More]

Parsing Json with Ajax

We want to consume a GET service and parsing an JSON response using Ajax and JQuery, so here is what we need. JSON example: { uuid: "7d6bc74b9a33257e29bb0206e2b00f434deb51a0", nombre: "Jose Luis", apellidoPaterno: "De la Cruz", apellidoMaterno: "Morales", rfc: "rfc", fechaNacimiento: 1445640529000, 18 more… } Let’s imagine this scenario: when user type rfc in a form and click on send button, we consume our service retrieve an JSON and fill some input text fields in a form, so our html file looks like this: [Read More]

UX Development

In this section I will post all referent about UX development such as Javascript, CSS and HTML5 specs.

Return to the main article

Firebase Remote Config

Firebase Remote Config is a Google cloud service that lets you change the behavior of your app without rebuild, it gives you the ability to define key/value parameters using Google Firebase Console, then in your app you can fetch those values and use them as you need. In this technical post we will cover the basic configuration in an Android application in order to change the REST API to override environment parameters such as QA and Production. [Read More]

Appium Cucumber and Junit5

Appium is an open-source tool for automating native, mobile web, and hybrid applications on both iOS and Android. In this post we will review how to do feature testing using Appium, Cucumber and Junit5. NOTE: If you want to know how to setup Appium, please refer my previous post: Appium Automation First, create a new project in android studio with no Activity, default options and set the following dependencies in build. [Read More]

Appium Automation

Appium is an open-source tool for automating native, mobile web, and hybrid applications on both iOS and Android. Appium supports app automation across a variety of platforms, like iOS, Android, and Windows. Each platform is supported by one or more “drivers”, which know how to automate that particular platform. Appium Philosophy Appium was designed to meet mobile automation needs according to a philosophy outlined by the following four tenets: You shouldn’t have to recompile your app or modify it in any way in order to automate it. [Read More]

Google Sign-In for Android

This time I will show you how to integrate Google Sing-In to an Android application. First you need to add Google play services SDK. In Android Studio select: Tools > Android > SDK Manager, then in SDK Tools tab check the Google Play Services checkbox button. Create a new project in android studio with an empty Activity, default options and set the following dependencies in build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26. [Read More]

Material Design Card View

Material design is used to create visual, motion, and interaction design across Android devices. Go Here for more information. This time I will show you how to create card views and how to respond to user event. Setup Create a new project in android studio with an empty Activity, default options and set the following dependencies in build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "dem. [Read More]

Material Design Creating Lists

Material design is used to create visual, motion, and interaction design across Android devices. Go Here for more information. This time I will show you how to create lists and how to respond to user event. Setup Create a new project in android studio with an empty Activity, default options and set the following dependencies in build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "com.jos.dem.list" minSdkVersion 21 targetSdkVersion 25 versionCode 1 versionName "1. [Read More]