Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed 2026-Bài tập lớn.pdf
Binary file not shown.
42 changes: 37 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,33 @@ bigbid/
└── pom.xml
```

---

## 🚀 Release

### Bước 1 — Tải bản Release

[![Release](https://img.shields.io/badge/Download-Release-blue?style=for-the-badge&logo=github)](https://github.com/Pumpkin-Nguyen/bigbid/releases)

### Bước 2 — Khởi động MySQL bằng Docker

```bash
docker volume create db_data && docker run -d --name bigbid-db -p 3306:3306 -e MYSQL_ROOT_PASSWORD=anhemf36 -e MYSQL_DATABASE=bigbid -v db_data:/var/lib/mysql --restart always mysql:8.4
```

### Bước 3: Khởi động server và client

```bash
java -jar bigbid-server-1.0.0.jar --spring.profiles.active=prod
```
---

```bash
java -jar bigbid-client-1.0.0.jar
```

---

## 🔨 Build từ mã nguồn

### Clone repository
Expand Down Expand Up @@ -169,7 +196,6 @@ src/main/resources/application-prod.yaml
```

#### Windows

```bash
copy src/main/resources/application-prod.yaml.example `
src/main/resources/application-prod.yaml
Expand All @@ -182,24 +208,30 @@ src/main/resources/application-prod.yaml
---

### Bước 4 — Build Server
#### macOS / Linux
```bash
# macOS / Linux
./mvnw clean package -DskipTests
```

# Windows
#### Windows
```bash
.\mvnw.cmd clean package -DskipTests
```
#### Run
```bash
java -jar target/server-1.0.0.jar --spring.profiles.active=prod
java -jar target/bigbid-server-1.0.0.jar --spring.profiles.active=prod
```
---

### Bước 5 — Build Client
Open a new terminal and navigate to the `bigbid-client`

```bash
mvn clean javafx:run
mvn clean package
```

```bash
java -jar target/bigbid-client-1.0.0.jar
```
---

Expand Down
4 changes: 3 additions & 1 deletion bigbid-client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ build/
.vscode/

### Mac OS ###
.DS_Store
.DS_Store

dependency-reduced-pom.xml
24 changes: 24 additions & 0 deletions bigbid-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,30 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.2</version>
<executions>
<execution>
<id>shade-jar-with-dependencies</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<minimizeJar>true</minimizeJar>

<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.bigbid.client.ClientApplication</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
68 changes: 0 additions & 68 deletions bigbid-client/run-client.bat

This file was deleted.

35 changes: 0 additions & 35 deletions bigbid-client/run-client.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,25 @@ private void handleRegister() {
return;
}

// 2. Validate Password khớp nhau
// 2. Validate các dữ liệu
if (password.length() < 8) {
AlertHelper.showWarning(
"Weak Password", "Password must be at least 8 characters long.");
return;
}

if (!email.contains("@")) {
AlertHelper.showWarning("Invalid Email", "Please enter a valid email address.");
return;
}

if (LocalDate.now().minusYears(16).isAfter(dob)) {
AlertHelper.showWarning(
"Age Requirement", "You must be at least 16 years old to register.");
return;
}

// 3. Validate Password khớp nhau
if (!password.equals(confirm)) {
AlertHelper.showWarning(
"Password Mismatch", "Passwords do not match. Please try again.");
Expand Down
2 changes: 1 addition & 1 deletion bigbid-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.bigbid</groupId>
<artifactId>server</artifactId>
<artifactId>bigbid-server</artifactId>
<version>1.0.0</version>
<name/>
<description/>
Expand Down