Skip to content

Instantly share code, notes, and snippets.

View potikanond's full-sized avatar

D. Potikanond potikanond

  • Computer Engineering, CMU
  • Thailand
View GitHub Profile
@potikanond
potikanond / README.md
Last active February 10, 2026 03:46
Terraform Tutorial - Docker Provider

Terraform Tutorial - Docker Provider

To use the Terraform Docker provider, you define the provider configuration and then use its resources (like docker_image and docker_container) to manage Docker components. The process involves writing the configuration file, initializing the project, and applying the changes.

Prerequisites

Before starting, ensure you have the following installed:

  • Terraform CLI
  • Docker CLI and Daemon (e.g., Docker Desktop, configured with a default profile)
@potikanond
potikanond / README.md
Last active October 18, 2025 14:33
Lecture 20 - Full-Stack Web Application (Part 2)

Lecture 20 - Full-Stack Web Application (Part 2)

Content

  • What is Database?
  • SQL vs. NoSQL
  • MongoDB Atlas
  • Prisma ORM
  • File Uploading
@potikanond
potikanond / README.md
Last active October 18, 2025 08:17
Lecture 19 - Full-Stack Web Application (Part 1)

Lecture 19 - Full-Stack Web Application (Part 1)

Content

  • Starter Repositories
  • Cross-Origin Resource Sharing (CORS)
  • Reverse Proxy
  • Password encryption using Bcrypt

@potikanond
potikanond / package.json
Created October 2, 2025 03:12
Quiz #3 - package.json
{
"name": "lecture16",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "npx nodemon --exec tsx src/index.ts",
"build": "npx tsc",
"serve": "node dist/index.js"
},
@potikanond
potikanond / README.md
Last active September 26, 2025 02:11
26x494 : K6 Load Testing Tutorial

Full Stack Dev: K6 Load Testing Tutorial

Setup K6

Install K6 for Windows

  • Winget: winget install k6
  • Download from official website k6.io

@potikanond
potikanond / README.md
Last active September 22, 2025 03:19
Lecture 17 - RESTful API with Express (Part 2)
@potikanond
potikanond / .gitignore
Created September 19, 2025 04:36
Node .gitignore for Node.js App
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@potikanond
potikanond / tsconfig.json
Last active September 21, 2025 07:05
TSConfig for Node.js Application
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
@potikanond
potikanond / README.md
Last active September 19, 2025 04:49
26x494 : Express+Redis Tutorial

Full Stack Dev: Express + Redis Tutorial

Create Simple API with Express Framework

Create an Express project with dependeicies

// create project folder
mkdir redislab
cd redislab
@potikanond
potikanond / README.md
Last active October 1, 2025 09:27
Lecture 16 - RESTful API with Express (Part 1)

Lecture 16 - RESTful API (Part 1)

Get an API Testing tool

Please download Insomnia app an install in your PC. This a tool for testing your API.