Deploy a VueJS web app with nginx on Ubuntu

By: Chi Thuc Nguye on https://thucnc.medium.com/deploy-a-vuejs-web-app-with-nginx-on-ubuntu-18-04-f93860219030 Installing Node JS We use nvm (Node Version Manager) for easy Node JS version switching later if needed. Install or update nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash Restart your terminal or source ~/.bashrc for required environment variables, then check installed nvm version: $ nvm –version0.34.0 Install Node JS Install Node JS with nvm is asContinue reading “Deploy a VueJS web app with nginx on Ubuntu”

ERB Delimiters in Template Underscore

Now that we know how to create a generic template let’s look at some ERB delimiters. The _.template function has 3 arguments: String text : the template string Object data : the evaluation data Object settings : local settings, the _.templateSettings is the global settings object If no data (or null) given, than a renderContinue reading “ERB Delimiters in Template Underscore”

Prepire Environment for RequireJS, Backbone, and Bower Starter Template on Windows

By Sochinda Tith, Required application: Nodejs installer (http://nodejs.org/download/) Msysgit (http://msysgit.github.io/) Download both application and install into Windows OS Open “CMD” as administrator and run: $ npm install bower-installer $ npm install -g requirejs del %HOMEDRIVE%%HOMEPATH%\AppData\Roaming\npm\r.js DOSKEY r.js=r.js.cmd $* *** Notation: for new version bower, we have to change component.js to bower.js If there any error’s called javascriptContinue reading “Prepire Environment for RequireJS, Backbone, and Bower Starter Template on Windows”

Building Mobile Apps with HTML and a Local Database

by Christophe Coenraets After my recent post, Crafting Native Looking iOS Apps with HTML, a number of you asked for an offline version that would use a Local Database (instead of the simple in-memory store) and provide a mechanism to automatically keep the local database in sync with a server database. I’ll save automatic data synchronization strategiesContinue reading “Building Mobile Apps with HTML and a Local Database”

RequireJS and Windows: how to invoke the r.js command

By: Hajime Branko Yamasaki Vukelic For Install r.js npm install -g requirejs   If you’ve been frustrated to hell using RequireJS on Windows, and the r.js optimizerin particular, you might have witnessed things like WSH errors or your editor opening the r.js file. I’ve seen a few frustrated people post bug reports on GitHub, so I decided to post a few solutions toContinue reading “RequireJS and Windows: how to invoke the r.js command”

Uncaught TypeError: undefined is not a function

I had the exact same problem and I was struggling around many hours until I saw your entry here. Then I started over from scratch and now it works for me at least. requirejs.config({ baseUrl:’/js/’, paths:{ jquery:’vendor/jquery’, handlebars: ‘vendor/handlebars’, text: ‘vendor/require-text’, chaplin:’vendor/chaplin’, underscore:’vendor/underscore’, backbone:’vendor/backbone’, highcharts: ‘vendor/highcharts’ }, shim: { backbone: { deps: [‘underscore’, ‘jquery’], exports:Continue reading “Uncaught TypeError: undefined is not a function”

Unit Testing Backbone.js Apps With QUnit And SinonJS

This article will be appearing in my forthcoming book on Backbone.js and continues the section on unit testing. We previously looked at Jasmine and will now look at QUnit and SinonJS. QUnit is a powerful JavaScript test suite written by jQuery team member Jörn Zaefferer and used by many large open-source projects (such as jQuery and Backbone.js) to testContinue reading “Unit Testing Backbone.js Apps With QUnit And SinonJS”

ExtJS and ASP.NET MVC 3: CRUD DataGrid

This short tutorial will walk though the implementation of DataGrid using ExtJS 3.3.1 andASP.NET MVC 3. In this tutorial I focus more on the integration of the front-end, so you will not find any database code. Whenever we deal with data we usually create, read/retrieve, update or delete them. ExtJS provides a great data grid component andContinue reading “ExtJS and ASP.NET MVC 3: CRUD DataGrid”

Make PNG transparency work in Internet Explorer

Directly inserting images in PNG format with transparency will leave you with a white spot when display in Internet Explorer. It makes your image looks ugly and this is really the last thing any web designer or webmaster would want on their website. Here’s a solution on how to solve this white spot and letContinue reading “Make PNG transparency work in Internet Explorer”