Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

213 total results found

Assignment : Integration with frontend

Week2 : Database connection

1. Download the frontend from this link https://drive.google.com/file/d/1UuALet56_czOseatkx2-jCsgUwWiYFAO/view?usp=sharingthen run npm i when you run it should look like this then npm i axios 2.  Then go to your backend run npm i cors then add the code bel...

Sending Cookies

CSC105 - 2024: Backend Development Week... Cookies & JWT keys

What is Cookie? Cookies are small pieces of data stored on a user's device by websites they visit. They serve various purposes in web development. Example Cookies use cases. Session Management Personalization Tracking and Analytics Advert...

JWT: How to securely stores cookies.

CSC105 - 2024: Backend Development Week... Cookies & JWT keys

What is JWT? JWT stands for JSON Web Token. It's a compact, URL-safe means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure or as...

Using Cookies

CSC105 - 2024: Backend Development Week... Cookies & JWT keys

How to use cookies Now as we can send cookies, I'll show you an example of how to get that cookies from user and use it. First let's create new file at /controllers/cookies name showCookies.js const ShowCookies = (req, res) => { const cookies = req.cook...

Welcome to era of IoT

CS24 IoT Workshop

What is middleware?

CSC105 - 2024: Backend Development Week... Middlewares

What is middleware? middleware is a function that sits between the incoming request and the outgoing response in an application's request-response cycle. It intercepts and can modify the request and response objects, perform additional tasks, and pass control...

LAB: how to do auth in your app?

CSC105 - 2024: Backend Development Week... Authentication lab

Let's learn about authentication. Authentication is the one of the most common and widely use in almost all web applications. Authentication will be 2 methods mainly Register (Sign up) Login Let's start: Download this zip file and extract it in to ...

Create Repo

Hackathon Guide Initialization Group Pr...

1. Go to https://csgit.sit.kmutt.ac.th/ and look at the top right 2. Click the "+" Icon 3. Choose "New group" 4. fill in your group infomation Format Group Name  "CSHackXX" (XX mean number of your group e.i. 01,02,03,..,18) CSHackxx 5. Ad...

Initialization Project Front + Back

Hackathon Guide Initialization Group Pr...

1. Go to your IDE and open blank directory 2. open your own terminal write "git init" 3. Create a Directory "fronted" and "backend" 4. create init fronted react app (you use the framework that you want) (just guidelines don't need to follow al...

First Java program

Basic java application

Assuming that you already can run JAVA in your machine.Let's learn the java basic to begin your first java journey First of all Java will run the code in main function and main function will be in the class of your choices1. Create a new folder where you want...

Java Variables

Basic java application

Variables are the values that stores data in it and you can use it easily variables can be in lots of types the basics one are int -> this data type is for storing the integer valueslong -> Can store integer more than intfloat -> Can store decimal point num...

Java Inputs

Basic java application

You can already show the data to the users. Now let's receive it from user. In java reading the input is a bit complicatedWe have a Scanner class in java the Scanner class have methods to read different type of input. There are some of it that we use frequ...

Docker Script

Cheat Sheet

docker build # Build images docker build -t your-username/image-name:tag <loacation> docker push docker hub docker push your-username/image-name:tag To build a Docker image for the amd64 architecture from a macOS system (likely arm64 architecture on Apple...

Docker Compose

Cheat Sheet

database compose version: "3.5" services: postgres: image: postgres:14-alpine command: postgres -c 'max_connections=' container_name: hostname: # networks: # defuat: # ipv4_address: 10.34.0.30 ports: - "...

Dockerfile

Cheat Sheet

React # Use Node.js 20 on the ARM64 platform (suitable for ARM-based systems like Apple Silicon) FROM --platform=linux/arm64 node:20-alpine AS builder # Enable Corepack and prepare pnpm for managing dependencies RUN corepack enable && corepack prepare pn...