@cyberskill/shared 1.165.0 → 1.166.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ ## ✅ Bước 1: Cài đặt node (nếu chưa cài)
2
+
3
+ [Xem tại đây](./setup-node.md)
4
+
5
+ ## ✅ Bước 2: Cài đặt pm2
6
+
7
+ ```
8
+ npm install pm2 -g
9
+ ```
10
+
11
+ ## ✅ Bước 3: Chạy pm2
12
+
13
+ Chạy bằng node mặc định
14
+
15
+ ```
16
+ pm2 start tên-file.js --name tên-app
17
+ ```
18
+
19
+ > ⚠️ Lưu ý: ví dụ `pm2 start index.js --name cyberskill-example`
20
+
21
+ Đối với dự án có script chạy từ package.json
22
+
23
+ ```
24
+ pm2 start pnpm --name tên-app -- run tên-script-chạy
25
+ ```
26
+
27
+ > ⚠️ Lưu ý: ví dụ `pm2 start pnpm --name cyberskill-example -- run start`
@@ -0,0 +1,17 @@
1
+ ## ✅ Bước 1: Cài đặt homebrew (nếu chưa cài)
2
+
3
+ ```
4
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
5
+ ```
6
+
7
+ ## ✅ Bước 2: Cài đặt redis
8
+
9
+ ```
10
+ brew install redis
11
+ ```
12
+
13
+ ## ✅ Bước 3: Chạy redis
14
+
15
+ ```
16
+ brew services start redis
17
+ ```