Categories Java

Create Angular and Spring Boot App All in One

Để tạo Angular và Spring Boot app trong một bạn phải tạo build angular và copy nó vào target/classes/static của spring boot. Bạn có thể đổi output của angular app build ở angular.json. Bài viết này sẽ hướng dẫn các bạn automate tất cả các công đoạn bằng…

Read More
Categories AWS

[AWS] Create a static website with a registered domain

Lưu ý: truy cập vào subdomain vẫn qua http nên không an toàn, không truy cập với / (segments) được. Để sửa lỗi này có 2 cách: Điền index.html vào error.html hoạt động hiệu quả với angular mà không thấy lỗi. Thêm redirection rules: Chưa test. Related posts:…

Read More
Categories Linux

[Linux] Useful Commands in Shell [Vi]

Root user thường có #, normal user thường có $. Thông tin của user ở /etc/passwd Quit vim không lưu bằng :q!, lưu xong quit :wq Để search file theo một từ khóa: Grep cũng search được directory recursively: Có thể dùng printf để in ra formatted text:…

Read More
Categories Linux

[Linux] Useful Commands in Shell

To make bash script, create a file with extension .sh and add the code: to the file. Example: To run it: Note: Just enter FILE_NAME.sh is wrong. Related posts: [Linux] Useful Commands in Shell [Vi] [Linux] – Copy and paste in Vim

Read More