Category Node.js-AWS-C
Share experience about Node.js-AWS-C
How to Publish NPM Package to npmjs.com
2023/2/5·3 min readHow to Create AWS EC2 by Terraform
2023/2/3·6 min readThis blog will demonstrate how to setup AWS EC2 with Terraform at local
How to Publish NPM Package to Github
2023/2/1·3 min readDeploy GCP Cloud Function with Event Trigger via PubSub
2023/04/06·6 min readThis blog create simple Node.js and deploy to GCP Cloud Function as PubSub Event Trigger.
Deploy GCP Cloud Function with Http Trigger
2023/04/06·6 min readThis blog create simple Node.js and deploy to GCP Cloud Function as Http Trigger.
How to Manage Traffic with Cloud Function and Manage Revision
2022/9/12·3 min readIf you have used the Google Cloud Function, you'll notice how easy it can deploy code and without worry the backend managed services by Google, so you can focus on development, at this blog will focus on how to manage traffic and revision once you have to deploy more different version.
How to Lock Node.js Project Version
2022/9/10·3 min readIf you use Node.js with different project in your development environment, you might get error depend on different Node.js version with different package.
How to Change DNS Nameservers from Godaddy to Point to AWS Route 53
2022/8/9·1 min readThis blog shows how to change your DNS Nameservers from Godaddy to point to the AWS Route 53. Assume you have registered a DNSdomain at Godaddy, but you want to host a website at AWS, here will provide steps on how to achieve this goal.
Use Prettier to Format VS Code to Enforce Consistent Style
2022/8/1·3 min readInstall nvm for Running Different Node.js Version Locally
2022/7/9·3 min readHow to Setup Node.JS Web Server to AWS with ECS and Fargate
2022/10/11·10 min readThis blog will focus on how to create simple Node.js by using Docker, then later push the docker image to AWS ECR and ECS and use AWS Fargate to serve this Node.js Web Server.
How to Setup Node.JS Web Server to AWS with ECS
2022/10/11·10 min readThis blog will focus on how to create simple Node.js by using Docker, then later push the docker image to AWS ECR and ECS and use AWS Fargate to serve this Node.js Web Server.
Use TypeScript with Google CloudFunction and Deploy locally
2022/10/1·3 min readThis blog show how to setup TypeScript with CloudFunction and Deploy to Google Cloud locally
CRUD with Cloud Firestore and Node.js by Google Cloud Function
2022/10/06·6 min readThis blog show how to do CRUD operation with Firestore and Google Cloud Function
How to Deploy Cloud Functions with Node.js
2022/10/03·5 min readThis blog demo how to get start with Cloud Function with Node.js and how to deploy to the Cloud
Use .gcloudignore to Ignore files deploy to the Cloud Functions
2022/10/02·5 min readTHis blog show couple example code/command that how to interact with google cloud functions.
How to Create Firestore database by Node.js
2022/10/01·5 min readCloud Firestore is cloud-based, NoSQL database, this article shows how to get start wth Node.js
Get Start with Docker with Next.js
2022/03/18·5 min readA Simple Tutorial about how to get start with Docker by using Next.js as Web Server.
Get Start with Docker with Node.js
2022/03/18·5 min readA Simple Tutorial about how to get start with Docker by using Node.js as Web Server.
How to Setup Swagger with Next.js
2021/9/9·8 min readThis blog walk through how to use Swagger / OpenAPI to add API document to Next.js, a node.js framework. It will cover how tocreate to API at Next.js and add API Document with Swagger by swagger-jsdoc and swager-ui-react.
How to Auto Remediate AWS resources By Using AWS Config
2021/9/11·1 min readAWS Config is a service that will record and evaluate all the changes at your AWS services, it will also provide remediate thechanges. This blog will demo how to use AWS Config to auto remediate S3 bucket to enable the versioning.
How to Setup Swagger OpenAPI with Express.js
2021/7/1·13 min readThis blog walk through how to use Swagger / OpenAPI to add API document to the Express.js, node.js framework, it will cover how tocreate to API at Express.js and add API Document with Swagger by using OpenAPI 3.0 specification.
Use Lambda with Node.js to Insert Data Into DynamoDB
2021/6/1·3 min readThis blog show how to create AWS Lambda with Node.js and insert record into DynamoDB, also shows manully deploy Lambda as packageto AWS from the your local develop environment.
How to Deploy Lambda with Node.js with Package Dependencies
2021/5/6·4 min readAWS Lambda is serverless compute service and let you run code at AWS's managing servers on the cloud, you will only worry aboutyour code and AWS will manage the underneath servers. This blog is trying to show how to get start with Lambda by use Node.js withpackage dependencies, the code will include one dependency module util, it'll will use zip to compress the index.js andnode_modules folder.
How to Deploy Lambda with Node.js without Dependencies
2021/5/3·3 min readAWS Lambda is serverless compute service and let you run code at AWS's managing servers on the cloud, you will only worry aboutyour code and AWS will manage the underneath servers. This blog is trying to show how to get start with Lambda by use Node.js withNo package dependencies.
How to Self-Hosted Sentry.io at AWS EC2
2021/5/1·3 min readThis blog shows how to self-hosted Sentry.io with AWS EC2.
List of AWS CloudTrail Record Fields
2021/3/7·3 min readAWS CloudTrail helps you record all API call at your AWS account, it enables you to detect who is making what kind of changes tothe AWS environment.
How to Send MongoDB Logs to CloudWatch Logs
2021/3/5·1 min readThis blog shows how to send MongoDB log files to AWS CloudWatch logs, you can spend multiple logs to the AWS CloudWatch logs bydefining the awslogs.config file.
How to Use CloudWatch Logs Insights to Analyze Logs
2021/3/5·1 min readHere, I provide examples of how to use CloudWatch Insights to search or analyze log data in CloudWatch logs. You can query to oneLog group or multiple logs together to analyze the data, you can also save the query and save the result to the CloudWatchdashboard as well.
How to Collect Memory Disk Usage By Using CloudWatch Agent
2021/3/20·2 min readThis blog provides a quick guide on how to set up CloudWatch Agent manually on EC2 Linux Instance, CloudWatch Agent enables you tocollect system or custom metrics from Amazon EC2 instances across operating systems. You can install CloudWatch Agent on AWS Cloudor on-promise server, Linux, or Windows as well.
How to Send Application Logs from EC2 to CloudWatch Logs
2021/3/2·3 min readThis blog shows how to send application logs from Amazon Linux 2 EC2 Instance to AWS CloudWatch logs, it'll include how to set upand configure.
How to Pass AWS Certified SysOps Administrator - Associate SOA-C02 - Study Question List
2021/3/1·5 min readStarting from July 27, 2021, the AWS Certified SysOps Administrator - Associate exam has been updated, the exam changed fromSOA-C01 to SOA-C02. This blog will help to prepare for the exam base on their exam guide. Below are setlist of question during thereview for the exam guide, these are just a few questions when we reading the guide, it won't guarantee to pass the exam if youknow all but at least will help you better to prepare the exam.
How to Setup Swagger with Nest.js
2021/3/1·3 min readThis blog is about how to setup Swagger / OpenAPI with Nest.js, a progressive Node.js framework, it will cover how to define fewsample API and how to enable Swagger UI at Nest.js.
How to Setup a HTTPS Node JS Server on Amazon EC2
2021/3/1·10 min readThis blog is a complete guide that shows how to set up HTTPS node.js web server 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 Much does CloudWatch Logs Cost
2021/2/15·2 min readSo CloudWatch logs are not free, but there's no up-front cost and the price is cheap to get started. Here are few things you canpay attention for the CloudWatch logs.
How to Backup DynamoDB Data to Different AWS Account
2021/2/13·5 min readThis blog shows how to migrate DynamoDB data between different AWS Account. You can migrate DynamoDB by using differentapproaches. 1. AWS S3 with AWS Glue. 2. Data Pipeline. 3. Amazon EMR, here, we'll use S3 and focus on how to move DynamoDB backupdata into different AWS account.
Setting Up Next.js on AWS EC2 Instance
2021/10/2·1 min readNext.js is a React-based web application framework built on top of Node.js web application, AWS EC2 is Amazon AWS Service's cloudcomputing which hosts the VM in the cloud. In this tutorial, we will manually create an EC2 instance and then SSH into theinstance and install and set up the Next.js.
Upload to AWS S3 By Using Node.js
2021/1/16·1 min readThis blog is to show some sample code that how to upload files to AWS by Node.js.
How to Find Record from MongoDB with Node.js and Mongoose
2020/9/11·1 min readThis blog will show a tutorial about how to find data into MongoDB by using Node.js with Mongoose.
How to Delete Data from MongoDB with Node.js and Mongoose
2020/8/11·1 min readThis 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
2020/8/11·3 min readHow to Insert Data into MongoDB with Node.js and Mongoose
2020/7/11·1 min readThis blog will show a tutorial about how to insert data into MongoDB by using Node.js with Mongoose.
How to Redirect HTTP to HTTPS on Amazon Linux with Node.js
2020/5/2·3 min readThis blog shows how to redirect from HTTP to HTTPS by using Nginx at Amazon Linux EC2 Instance.
Use AWS Elastic IP Address
2020/4/9·1 min readThis blog will show how to use AWS elastic IP to assign to EC Instance.
How to Retrieve EC2 Instance Meta Information
2020/4/1·1 min readFew commands to get information for EC2 meta information.
Create AWS Classic Load Balancer
2020/3/4·1 min readThis blog shows how to use AWS classic Load Balancer from scratch, first we need to do some preparation. At the end of the setup,you'll set up 2 EC2 instances with the public subnet.
How to Use nconf for Environment Configuration at Node.js
2020/3/2·1 min readThis blog shows how to use nconf for Node.js environment configuration.
Blocking Traffic from Specific IP Address with AWS Network ACL
2020/3/2·1 min readThis blog shows few ways of use AWS Network ACLs to block traffic to your site.
Use VPC Flow Logs
2020/3/11·1 min readThis blog shows how to set up VPC flow logs.
How to Setup AWS Application Load Balancer
2020/2/4·1 min readThis blog will show how to create an AWS application load balancer with custom VPC's EC2 instances.
How to Create VPC with Public and Private Subnet
2020/2/12·1 min readThis blog shows how to create AWS VPC from scratch.
How to Create AWS Organization - For Consolidated Billing
2020/2/11·1 min readIf you just have 1 AWS account, you could just use that account for billing and development. However, if you have multiple AWSaccounts, it is hard to manage each account's billing, so AWS has a way that is using AWS Organizations to consolidate billing.
Backup AWS DynamoDB Table to Local
2020/12/31·1 min readThis blog shows how to backup your AWS DynamoDB table (on the cloud) to your local DynamoDB environment.
Move DynamoDB Table from Local to AWS Cloud
2020/12/31·1 min readThis blog shows how to move DynamoDB local table and data to the DynamoDB Web Service, unlike SQL Database, you can use the backupfile to restore to a different environment.
Create DynamoDB Table Locally
2020/12/30·1 min readThis blog will show how to create a DynamoDB table in your local environment.
How to Setting up DynamoDB Locally
2020/12/12·1 min readThis blog I'll show how to set up DynamoDB locally, also show a few simple codes to access local DynamoDB.
How to Increase AWS EBS Volume Size
2020/12/11·1 min readThis quick note shows how to increase AWS EC2 Linux's EBS volume size.
Provision AWS EC2 Instance
2020/1/23·1 min readThis blog shows how to create EC2 instance.
SSH to EC2 Instance from Mac OS
2020/1/23·1 min readThis blog shows how to connect to AWS Linux or Ubuntu from Mac OS
How to do S3 Cross Region Replication
2020/1/21·1 min readThis blog shows how to using s3 replication within your current AWS account.
SSH to EC2 Instance via Chrome Extension Secure Shell
2020/1/19·1 min readThis blog shows how to ssh to EC2 Instance via Chrome Extension Secure Shell.
SSH to EC2 Instance via EC2 Instance Connect
2020/1/18·1 min readThis blog shows how to use AWS Instance Connect to SSH to AWS EC2 Instance.
How to Set Up Billing Alarm in AWS
2020/1/14·1 min readThis blog shows how to set up billing alarms in AWS.
Share S3 Bucket Between AWS Account
2020/1/13·1 min readThis blog shows how to share an s3 bucket cross different AWS account.
Build and Deploy with AWS CodePipeline
2019/3/1·4 min readHow to Deploy Node.js App to the AWS Elastic Beanstalk
2019/1/1·1 min readHow to deploy a Node.js app to AWS Elastic Beanstalk.
Few Useful Command Line Commands for Node.js
2016/4/15Gulp ASP.NET MVC 4.5.2 Template and Browserify
2016/4/1·1 min readHow to Use Gulp ast ASP.NET MVC 4.5.2 Template.
Start Use Gulp and Browserify to Build Angular App with Node.js
2016/4/1·5 min readHow to Use npm live-server
2016/3/3·1 min readHow to use npm package live-server.
How to Setup MongoDB Text Search with Node.js
2016/3/19·12 min readHow to Use Grunt with Keystone.js for Minify CSS, Javascript and HTML
2016/2/1·8 min readHow to Use Grunt to setup task at Keystone.js for minify CSS, Javascript, HTML
How to Debug Node.js Code with Visual Studio
2016/1/31How to debug node.js app in visual studio.
How to Run Keystone.js within IIS
2015/7/31·2 min readA instruction of how to install node.js keystone at windows 7 IIS as web application.
A Simple Design to Use Ghost Blog Platform with Visual Studio
2015/7/31architecture of ghost in windows system.
List of Useful Links about Ghost Blog Platform
2015/7/31·1 min readList of links and tips for Ghost Blog Platform.
How to Use Ghost Blog CRM Platform
2015/7/31·1 min readThis blog provides basic information about how to use Ghost Platform, after how to install Ghost.
How to Run Ghost Blog Platform at IIS
2015/7/31·3 min readThis is about how to setup Ghost to run at IIS Web Server.
How to Setup Ghost as Intranet Network
2015/7/31·1 min readSo following How to setup Ghost(node.js) at window server [../blog/post/run-ghostnodejs-at-iis], you could setup Ghost atProduction server or use as local development. This blog show how to setup as Production but use inside the company's network asIntranet.
Few Free Node.js Web Application for Web Developers
2015/7/2·1 min readFew List of web application framework build on top of node.js
How to Install Node.js Ghost Blog Platform
2015/6/2·1 min readShows how to install Ghost [https://ghost.org/download/] node.js platform
Stop Using Visual Studio 2013 with Node.js Project
2015/12/31Stop using Visual Studio with Node.js Project
How to Create a Simple Angular Contact Form at Keystone.js
2015/11/1·11 min readAngular.js with keystone.js
How to Keep Node.js Running at Linux Server
2014/8/2·1 min readThis blog shows how to use nohup + repawn.js to keep node.js web application running. Node.js/Express.js is great for Web API’sand applications. In contrast to known enterprise technologies, Node.js is very special. It’s a single process/threadedenvironment. If an unhanded exception occurs, the Node.js virtual machine simply stops, leaving the application in an unresponsivestate. Due to the async nature of Node.js, try/catch doesn't always work, even with domains and stuff you have a chance that theapplication crashes on production while you sleep. from http://java.dzone.com/articles/how-keep-nodejs-processes. This's node.js,it's different.
How to Use MongoDB TextSearch by Mongoose
2014/8/2·1 min readHow to use MongoDB text search
Few Ways to Handler Environment Config at Express.js
2014/8/1·1 min readConfig for your application is very important, because your testing, development and production is going to have differentenviroment variable. This blog show few choice of using config at Node.js.
Code Snippet - How to do Async Programming in Node.js
2014/7/5A 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 oneway.
Code Snippet - Return Json Response for Express.js
2014/7/5·1 min readA Sample Code Snippet for creating API return JSON object.
How to Get Start by Using Express.js
2014/6/7·1 min readThis blog will show how to use Express.js default template on your local machine. Also deploy it to the cloud to verify itworking. The IDE using at this blog is Sublime Text and Cloud9 IDE.
How to Use Yeoman, Brower, Grunt, Angular.js and Node.js
2014/6/7Get 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 buildtask with Grunt, search additional library with Brower. All that make the web development very simple and fast. In additional withclient side technology AngularJS and backend-side NodeJS.
How to Get Start with Mongoose
2014/6/21This article provide information for you to get start with mongoose.
How to Handler 500 Error at Express.js
2014/6/14·1 min readSample code about how to handler 500 error at Express.js
How to Use Forever in Linux for Node.js
2014/5/31·1 min readForever is an npm package, this blog shows how to use it.
How to Get Start with Node.js
2014/5/31·2 min readA sample code about how to use Node.js to create a simple web server.
How to Use Different Environment Config with Node.js
2014/5/3·1 min readHow to use environment config with Node.js.
Code Snippet - How to Access Query String at Node.js
2014/5/2·1 min readSample Code snippet how to access querystring at Node.js.
Code Snippet - How to Handler Redirect within Node.js
2014/5/2·2 min readat 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 Node.js as Background by Using Forever
2014/4/30·1 min readHow to use forever to run Node.js as background.