Skip to content

Commit

Permalink
Merge pull request #56 from yanyanho/main
Browse files Browse the repository at this point in the history
add docker yaml
  • Loading branch information
yanyanho authored Nov 9, 2023
2 parents 2a364ba + 4b33146 commit b040768
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 19 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ https://github.com/spruceid/siwe-go/blob/main/message.go
/root/graph-node/docker/data/ipfs

## graph ql 集成
"https://api.studio.thegraph.com/proxy/55957/dapp-learning-redpacket/version/latest"

## TODO
1. 头像 简历
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3.2'
services:
db:
image: mysql:latest
container_name: mysql
environment:
- MYSQL_DATABASE=dl
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
volumes:
- ./mysql_volume:/var/lib/mysql
# - ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
ipfs:
image: ipfs/kubo:v0.14.0
ports:
- '5001:5001'
- "8081:8080"
- "4001:4001"
volumes:
- ./data/ipfs:/data/ipfs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @Description TODO
**/
@Component
public class Compent {
public class Constant {

public static ContractGasProvider GAS_PROVIDER = new StaticGasProvider(GAS_PRICE, GAS_LIMIT);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package com.dl.officialsite.common.advice;

import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

//package com.dl.officialsite.common.advice;
//
//import org.springframework.http.HttpHeaders;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.MethodArgumentNotValidException;
//import org.springframework.web.bind.annotation.ControllerAdvice;
//import org.springframework.web.context.request.WebRequest;
//import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//import java.util.stream.Collectors;
//
//@ControllerAdvice
//public class GlobalExceptionHandler extends ResponseEntityExceptionHandler {
// @Override
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/dl/officialsite/redpacket/RedPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
@Entity
@DynamicUpdate
@Table(name = "red_packet", schema = "dl", uniqueConstraints = {
@UniqueConstraint(name = "id", columnNames = {"id"}),
@UniqueConstraint(name = "name", columnNames = {"name"})})
@UniqueConstraint(name = "id", columnNames = {"id"})
})

public class RedPacket {
@NotNull
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/DB/data-mysql.SQL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

INSERT INTO team ( team_name, team_profile, administrator, authority)
VALUES ("Dapp-Learning DAO core founders", "Initial founding members and those who contributed significantly, Taking charge of community vault.", "0x1F7b953113f4dFcBF56a1688529CC812865840e1", 10),
VALUES ("Dapp-Learning DAO co-founders", "Initial founding members and those who contributed significantly, Taking charge of community vault.", "0x1F7b953113f4dFcBF56a1688529CC812865840e1", 10),
("Dapp-Learning DAO builders", "Those who are willing to participate in the community and make outstanding contributions to community building", "", 9),
("Dapp-Learning DAO PR reviewers", "Responsible for review PR of our repository", "", 8),
("Dapp-Learning DAO sharing group", "sharing in Dapp-Learning and earn reward", "", 7),
Expand Down

0 comments on commit b040768

Please sign in to comment.