Front-End
Share experience about front end technology
How to Setup Swagger with Next.js
9/9/2021·8 min read
This blog walk through how to use Swagger / OpenAPI to add API document to Next.js, a node.js framework. It will cover how to create to API at Next.js and add API Document with Swagger by swagger-jsdoc and swager-ui-react.
How to Setup Swagger OpenAPI with Express.js
7/1/2021·13 min read
This blog walk through how to use Swagger / OpenAPI to add API document to the Express.js, node.js framework, it will cover how to create to API at Express.js and add API Document with Swagger by using OpenAPI 3.0 specification.
How to Setup Swagger with Nest.js
3/1/2021·3 min read
This blog is about how to setup Swagger / OpenAPI with Nest.js, a progressive Node.js framework, it will cover how to define few sample API and how to enable Swagger UI at Nest.js.
Use Lambda with Node.js to Insert Data Into DynamoDB
6/1/2021·3 min read
This blog show how to create AWS Lambda with Node.js and insert record into DynamoDB, also shows manully deploy Lambda as package to AWS from the your local develop environment.
How to Deploy Lambda with Node.js with Package Dependencies
5/6/2021·4 min read
AWS Lambda is serverless compute service and let you run code at AWS's managing servers on the cloud, you will only worry about your code and AWS will manage the underneath servers. This blog is trying to show how to get start with Lambda by use Node.js with package dependencies, the code will include one dependency module util, it'll will use zip to compress the index.js and node_modules folder.
How to Deploy Lambda with Node.js without Dependencies
5/3/2021·3 min read
AWS Lambda is serverless compute service and let you run code at AWS's managing servers on the cloud, you will only worry about your code and AWS will manage the underneath servers. This blog is trying to show how to get start with Lambda by use Node.js with No package dependencies.
How to Getting Started with Sentry Error Tracking
4/1/2021·2 min read
This blog shows how to get started with Sentry.io for tracking JavaScript errors and performance.
Javascript Splice vs Slice
2/3/2020·1 min read
This blog compares how to use Splice versus using Slice at JavaScript.
Javascript Push Pop Shift and Unshift
1/5/2020·2 min read
This blog show difference between the JavaScript Array's method push, pop, shift and unshift usage.
About Javascript Best Practices, ECMAScript 5
12/29/2015·8 min read
Everything about Javascript ECMAScript 5.
How to Hightlight Code Block by Use Prism
10/31/2015·1 min read
Prism is very nice javascript, css library for syntaxhight your code.
How to Setup a HTTPS Node JS Server on Amazon EC2
3/1/2021·10 min read
This blog is a complete guide that shows how to set up HTTPS node.js webserver on EC2 from beginning to end. It'll include how to set up a simple Express.js web app on EC2, how to create an SSL/TSL certificate by using AWS Certificate Manager, how to setup AWS application load balancer and create redirect rule from non-www to www, HTTP to HTTPS, and how to use Route 53 to configure a route from your custom domain to the AWS application load balancer. This blog will assume using example.com, at the end of the blog, we'd like all the http://example.com, http://www.example.com, https://example.com redirect to https://www.example.com.
How to Get Start with Node.js
5/31/2014·2 min read
A sample code about how to use Node.js to create a simple web server.
How to Redirect HTTP to HTTPS on Amazon Linux with Node.js
5/2/2020·3 min read
This blog shows how to redirect from HTTP to HTTPS by using Nginx at Amazon Linux EC2 Instance.
Angular2 - Quickstart Angular2 with angular.io
5/31/2016·1 min read
So I'm trying to learn Angular by checking angular.io's QuickStart Example. Once you get all the files as following,
index.html
,package.json
,styles.css
,systemjs.config.js
,tsconfig.json
,typings.json
. Also, you'll needmain.ts
andapp.component.ts
, but you can get all these files at Angular quickstart. I'll list my files here which I copied from angular.io because the code here you can reference what's file are using.How to Get Start by Using Express.js
6/7/2014·1 min read
This blog will show how to use Express.js default template on your local machine. Also deploy it to the cloud to verify it working. The IDE using at this blog is Sublime Text and Cloud9 IDE.
How to Use Ghost Blog CRM Platform
7/31/2015·1 min read
This blog provides basic information about how to use Ghost Platform, after how to install Ghost.
SEO - Robots and Sitemap.xml
1/7/2016·1 min read
Easiest improvement for robots is add file robots.txt and following content. It means allow any robots engine to crawl your site, and don't index your /keystone and /admin root folder. One of the reason you do that is then these engine won't check your page so first your page speed is better.
How to Keep Node.js Running at Linux Server
8/2/2014·1 min read
This blog shows how to use nohup + repawn.js to keep node.js web application running. Node.js/Express.js is great for Web API’s and applications. In contrast to known enterprise technologies, Node.js is very special. It’s a single process/threaded environment. If an unhanded exception occurs, the Node.js virtual machine simply stops, leaving the application in an unresponsive state. Due to the async nature of Node.js, try/catch doesn't always work, even with domains and stuff you have a chance that the application crashes on production while you sleep. from http://java.dzone.com/articles/how-keep-nodejs-processes. This's node.js, it's different.
Start Angular2 with angular-cli
9/1/2016·1 min read
This blog will show how to get start with Angular2 with angular-cli.
Few Links About Convert Jade to Html and Vice Versa
5/10/2014
How to Setup Ghost as Intranet Network
7/31/2015·1 min read
So following How to setup Ghost(node.js) at window server, you could setup Ghost at Production server or use as local development. This blog show how to setup as Production but use inside the company's network as Intranet.
Angular2 Master/Detail Page Example
12/11/2020·1 min read
This blog demo how to build angualr2 master/detail page, following is the template page for now.
Code Snippet - How to Add CSS Class to Jade
5/31/2014
Few Useful Links About JavaScript Best Practices
7/5/2014·1 min read
Few collections about best practices of JavaScript.
Code Snippet - How to Access Query String at Node.js
5/2/2014·1 min read
Sample Code snippet how to access querystring at Node.js.
How to Use npm live-server
3/3/2016·1 min read
How to use npm package live-server.
Code Snippet - Return Json Response for Express.js
7/5/2014·1 min read
A Sample Code Snippet for creating API return JSON object.
Javascript default behavior of load method
8/2/2014·1 min read
Was curious and although I think I kind of know the result just want to do a check what's default javascript behavior to load the method. Should I always put the method to the beginning of the script or the end of the script.
How to Use MongoDB TextSearch by Mongoose
8/2/2014·1 min read
How to use MongoDB text search
How to Use Different Environment Config with Node.js
5/3/2014·1 min read
How to use environment config with Node.js.
Start Angular2 - Resources
5/31/2016·1 min read
Few resources to learn Angular2.
Start Angular2 with Angular2-Webpack-starter
9/3/2016·1 min read
Get start with Angular2 with Angular2-webpack-starter
How to Run Node.js as Background by Using Forever
4/30/2014·1 min read
How to use forever to run Node.js as background.
Angular2 - Try angular.io's tutorial
5/28/2016·1 min read
A code snippet about how to use Angular2.
Gulp ASP.NET MVC 4.5.2 Template and Browserify
4/1/2016·1 min read
How to Use Gulp ast ASP.NET MVC 4.5.2 Template.
List of Useful Links about Ghost Blog Platform
7/31/2015·1 min read
List of links and tips for Ghost Blog Platform.
How to Deploy Node.js App to the AWS Elastic Beanstalk
1/1/2019·1 min read
How to deploy a Node.js app to AWS Elastic Beanstalk.
How to Use Forever in Linux for Node.js
5/31/2014·1 min read
Forever is an npm package, this blog shows how to use it.
Detect Breakpoint at Angular
2/1/2019·1 min read
Sample code about how to detect breakpoint at Angular.
How to Handler 500 Error at Express.js
6/14/2014·1 min read
Sample code about how to handler 500 error at Express.js
Angular2 HelloWorld
6/30/2016·1 min read
Use Angular2 to create a Simple Sample App.
Upload to AWS S3 By Using Node.js
1/16/2021·1 min read
This blog is to show some sample code that how to upload files to AWS by Node.js.
How to Use nconf for Environment Configuration at Node.js
3/2/2020·1 min read
This blog shows how to use nconf for Node.js environment configuration.
How to Find Record from MongoDB with Node.js and Mongoose
9/11/2020·1 min read
This blog will show a tutorial about how to find data into MongoDB by using Node.js with Mongoose.
How to Insert Data into MongoDB with Node.js and Mongoose
7/11/2020·1 min read
This blog will show a tutorial about how to insert data into MongoDB by using Node.js with Mongoose.
How to Delete Data from MongoDB with Node.js and Mongoose
8/11/2020·1 min read
This blog will show a tutorial about how to delete data from MongoDB by using Node.js with Mongoose.
How to Update MongoDB Data with Node.js and Mongoose
8/11/2020·3 min read
Few Sample Applications for Angular.js
10/3/2015·1 min read
List of angular app example, template from github or other open source.
Customize Bootstrap Breakpoint for Show/Hide Nav Icon
9/7/2014·1 min read
Default for boostrap nav to show is 760px, if you want to change it, following is the setting you could do to customize the bootstrap. Following screen example show how to show or hide the nav icon at 1024px.
CSS Add Content Between Links
9/7/2014·1 min read
sample code for apply style only for tablet, mobile, inserting cotent between links by css.
How to Use CSS3 Media Query
10/5/2014·1 min read
Few tips about CSS3 Media Query.
How to Run Keystone.js within IIS
8/1/2015·2 min read
A instruction of how to install node.js keystone at windows 7 IIS as web application.
Few Ways to Handler Environment Config at Express.js
8/2/2014·1 min read
Config for your application is very important, because your testing, development and production is going to have different enviroment variable. This blog show few choice of using config at Node.js.
Fix Google Crawl Errors 404
1/1/2016·1 min read
How to Use Grunt with Keystone.js for Minify CSS, Javascript and HTML
2/2/2016·8 min read
How to Use Grunt to setup task at Keystone.js for minify CSS, Javascript, HTML
Javascript Unit Test With Jasmine, Angular and Chutzpah with Visual Studio
10/3/2015·1 min read
Enable javascript unit test at Visual Studio Test Explorer window
Few Free Node.js Web Application for Web Developers
7/3/2015·1 min read
Few List of web application framework build on top of node.js
Start Use Gulp and Browserify to Build Angular App with Node.js
4/2/2016·5 min read
How to Install Node.js Ghost Blog Platform
6/3/2015·1 min read
Shows how to install Ghost node.js platform
How to Setup MongoDB Text Search with Node.js
3/20/2016·12 min read
Angular Directive for Check Number Input
5/2/2015·4 min read
A simple angular directive input text only accept number as 10 digits, but also length is configurable at view.
Crawl Postponed Because Robots.txt was Inaccessible
7/6/2014·2 min read
When you see the error message "Crawl postponed because robots.txt was inaccessible" at your web master page. It is telling you that google can't crawl your site, something wrong with your robots.txt. That means, your site's SEO is dead, unless somebody know your site go to your site directly, otherwise google will not showing your site to search.
HTML i Tag Closing Tag
1/1/2016·2 min read
Code Snippet - Sample Code for Beautify Json
5/2/2015·1 min read
Code Snippet - How to Handler Redirect within Node.js
5/3/2014·2 min read
at node.js server side, you want to redirect to another url after you success get response from one api.
you can try use request module.
How to Run Ghost Blog Platform at IIS
8/1/2015·3 min read
This is about how to setup Ghost to run at IIS Web Server.
How to add Facebook Share Button to the Page
2/1/2016·11 min read
This blog show how to use facebook share in 3 ways. Contains code snippet in HTML, Javascript.
Few Very Useful Links to Help Improve the SEO
7/6/2014·2 min read
few very useful seo tools and tools could improve your site's SEO.
How to Create a Simple Angular Contact Form at Keystone.js
11/2/2015·11 min read
Angular.js with keystone.js
How to Use gigya to Share and Comments
2/1/2016·2 min read
How to use Gigya to share and comment
Example Code - How to Use Angular.js Location Hash
5/2/2015
angular location hash example code
Few Memo about ECMAScript 5
12/5/2015
How to Support IE9 Input Placeholder for Angular.js
5/2/2015
How to make placeholder at IE9 use angular works, yes just make it work.
Angular2 StackOverflow List
5/29/2016
A Simple Design to Use Ghost Blog Platform with Visual Studio
8/1/2015
architecture of ghost in windows system.
Few Useful Command Line Commands for Node.js
4/16/2016
Code Snippet - How to Use Variable with Jade
6/1/2014
Jade Variable Example
following h1 will show's the "hello, h1 will be this."
- foo = "hello, h1 will be this." h1=foo
more example you can find at here.
How to Get Start with Mongoose
6/22/2014
This article provide information for you to get start with mongoose.
How to Debug Node.js Code with Visual Studio
2/1/2016
How to debug node.js app in visual studio.
Code Snippet - How to do Async Programming in Node.js
7/6/2014
A shot sample code to describe how to use npm async module waterfall process.
Since node.js, mongoose is async, if want to process your logic like, update step 1 do setup 2 and more. Use async module is one way.
Stop Using Visual Studio 2013 with Node.js Project
1/1/2016
Stop using Visual Studio with Node.js Project
How to add Google Fonts to Your WebSite
10/3/2015
How to get start using Google Font API
How to Use Yeoman, Brower, Grunt, Angular.js and Node.js
6/8/2014
Get Start Yeoman, Grunt and Brower with AngularJS, NodeJS
I really like work with this fast, modern web development after try a simple html template provide by Yeoman. Run the build task with Grunt, search additional library with Brower. All that make the web development very simple and fast. In additional with client side technology AngularJS and backend-side NodeJS.