https://github.com/dapp-learning-dao/official-website-backend
backend of official website
https://github.com/dapp-learning-dao/official-website-backend
Last synced: about 1 year ago
JSON representation
backend of official website
- Host: GitHub
- URL: https://github.com/dapp-learning-dao/official-website-backend
- Owner: Dapp-Learning-DAO
- License: apache-2.0
- Created: 2023-09-25T10:26:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T09:56:27.000Z (about 2 years ago)
- Last Synced: 2024-04-14T00:55:37.650Z (about 2 years ago)
- Language: Java
- Size: 1.38 MB
- Stars: 2
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Official-website-backend
backend of official website
## interface for front-end
see :
https://www.postman.com/lively-station-290552/workspace/publicworkspace/collection/13180077-af411142-dfd4-4e33-bfb5-ec26ff095072
https://hoppscotch.io/
## login xyz
https://github.com/spruceid/siwe-go/blob/main/message.go
## Run
mysql: pls docker run mysql
ipfs: pls docker run ipfs node
https://medium.com/@borepstein/running-an-ipfs-node-as-a-docker-container-on-a-private-network-4c0186aeca61
## build
```
ssh root@ip
./gradlew build -x test
scp ./dist/apps/dl.jar root@ip:/root/Official-website-backend/dist/apps
```
42090FB96DF8B814C12CAEA86A62103BEFDA22A3263641D139E56E1498EBCE0B
## IPFS data
/root/graph-node/docker/data/ipfs
## COS file
https://dlh-1257682033.cos.ap-hongkong.myqcloud.com/{uuid}
## graph ql 集成
生产 :https://api.studio.thegraph.com/proxy/55957/dapp-learning-redpacket/version/latest
测试: https://api.studio.thegraph.com/proxy/55957/redpacket-/version/latest/graphql
```agsl
{
redpackets {
id
happyRedPacketId
name
refunded
allClaimed
claimers {
claimer
}
}
}
```
## TODO
1. 头像 简历
2. 红包改造,奖励认领自动化。
3. team system. 支持member加入team。
4.
## 参考链接
- Cors: https://cloud.tencent.com/developer/article/1924258
- session: https://www.cnblogs.com/RudeCrab/p/14251154.html
- upload pic: https://juejin.cn/post/6844903630416379918
- JPA query: https://spring.io/blog/2011/04/26/advanced-spring-data-jpa-specifications-and-querydsl
- JPA : https://www.baeldung.com/hibernate-criteria-queries
- session filter: https://blog.csdn.net/dothetrick/article/details/110356640
- cos: https://cloud.tencent.com/developer/article/1559746
- cos download: https://blog.csdn.net/qq_43960768/article/details/126731733
- twitter: https://rohankadam965.medium.com/how-to-implement-oauth-social-login-using-twitter-spring-boot-java-part-2-acff7f4b255a
- gmail: https://stackoverflow.com/questions/74317936/send-email-with-gmail-using-java/77074075#77074075