Home » JavaScript » Page 28

JavaScript

Create DynamoDB tables with Node.js

On this post we will create Tables on a DynamoDB Database using node.js Before getting started we need to have local dynamodb installed since we want to avoid any costs for dynamodb usage. There was a previous post on local dynamodb. In case you use docker you can find a local dynamodb image or you can create one on you own ...

Read More »

Angular.js Scope Apply Example

If you’re even a little bit into learning Angular and have researched the main points and have the basic understanding of it, you will have noticed that the first thing everyone should have a good grasp on, is the two-way data binding that AngularJS offers. But what is data binding and how can you implement it in your Angular apps? how simple ...

Read More »

Insert Items to DynamoDB Tables using Node.js

On a previous article we learned how to create DynamoDB Tables using Node.js. Next step is to insert items to the DynamoDB Tables previously created. Keep in mind that for the insert action the most basic step is to specify the the primary key. For the table users the primary key is the attribute email. You can add as many attributes ...

Read More »

TypeScript example using RequireJS

1. TypeScript with RequireJS In this article we are going to explain how to create a TypeScript application and separate its components in modules. After that we are going to show how to load these modules using AMD with RequireJS and the TypeScript compiler options to support it. All code and examples used in this tutorial are available in the ...

Read More »

Scheduling jobs on a Sails.js application

In one of my projects there was the need to put scheduled tasks on my Sails.js application. Agenda and node-schedule are the tools of my choice when scheduling jobs on a node.js app. What we are gona cover is adding scheduling to our Sails.js application using node-schedule and agenda. To get started let’s create our application sails new SailsScheduling cd SailsScheduling ...

Read More »

Scheduling jobs on Node.js with agenda

There are many ways to schedule jobs in your application. A very common practice is to back our jobs with persistence. By doing so we will be informed in the future if the job did fail or succeed and when it should be the next execution. Agenda is a light-weight job scheduling library for node.js. It is backed with mongodb. It is ...

Read More »

RequireJS Optimizer Example

1. RequireJS RequireJS is an AMD JavaScript library that supports asynchronous file and module loading. It is optimized for web browser usage but it is also possible to use in Java or Node environments. It is compatible with all main browsers and quite intuitive to use. Its main benefit is that it offers the option to logically structure an application ...

Read More »

Javascript Frame Example

The aim of this tutorial is to describe and demonstrate using JavaScript to manipulate and interact with iframes, showing how to access and modify properties of the iframe element, how to communicate with the document inside the iframe, getting information from the iframe and passing information to it. Iframes, or inline frames, allow you to load separate HTML files into ...

Read More »

Basic JavaScript arrays reminder

I’m pretty bad when it comes to remembering syntax details for languages I don’t use every day, especially since I work with a few languages that use C-syntax and not just JavaScript. Also, it’s not the kind of details I want to spend a lot of time studying since this information can easily be found. In most cases, it’s easy ...

Read More »