You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
CXM b4329e5f5c
fix: build script
2 years ago
assets fix: asset 2 years ago
configs change project structure 2 years ago
global change project structure 2 years ago
internal fix: asset 2 years ago
pkg feat: hello banner 2 years ago
storage/logs change project structure 2 years ago
web feat: fix typescript 2 years ago
.gitattributes change project structure 2 years ago
.gitignore fix: build script 2 years ago
Dockerfile fix: asset 2 years ago
LICENSE Initial commit 2 years ago
Makefile fix: build script 2 years ago
README.md Merge pull request #24 from rocboss/dev 2 years ago
build.sh fix: build script 2 years ago
config.yaml.sample change project structure 2 years ago
go.mod feat: hello banner 2 years ago
go.sum feat: hello banner 2 years ago
init.go change project structure 2 years ago
main.go feat: hello banner 2 years ago
paopao.sql feat: add user whisper 2 years ago
version fix: build script 2 years ago

README.md

Go Report Card Forks Stargazers MIT License Contributors Issues

Logo

PaoPao

🔥一个清新文艺的微社区
View Demo · Report Bug · Features

1. 截图预览

明色主题

暗色主题

更多演示请前往官网体验(谢绝灌水)

(back to top)

2. 快速开始

2.1 技术栈

PaoPao主要由以下优秀的开源项目/工具构建

2.2 环境要求

  • Go (1.17+)
  • Node.js (14+)
  • MySQL (5.7+)
  • Redis
  • Zinc

* Zinc是一款轻量级全文搜索引擎可以查阅 https://zincsearch.com/ 安装

以上环境版本为PaoPao官方的开发版本仅供参考其他版本的环境未进行充分测试


3. 安装说明

宝塔安装

我们为宝塔用户提供了超详细安装教程 点此查看

普通安装

克隆代码库

git clone https://github.com/rocboss/paopao-ce.git

3.1 后端

  1. 导入项目根目录下的 paopao.sql 文件至MySQL数据库
  2. 拷贝项目根目录下 config.yaml.sample 文件至 config.yaml,按照注释完成配置编辑
  3. 编译后端
    go mod download
    go build -o paopao-api .
    
  4. 启动后端
    chmod +x paopao-api
    ./paopao-api
    

3.2 前端

  1. 进入前端目录 web,编辑 .env 文件中后端服务地址,下载依赖包

    cd ./web
    vim .env
    yarn
    
  2. 编译前端

    yarn build
    

    build完成后可以在dist目录获取编译产出配置nginx指向至该目录即可

3.3 其他

建议后端服务使用 supervisor 守护进程并通过nginx反向代理后提供API给前端服务调用。

短信通道使用的聚合数据(juhe.cn),如果申请不下来,可以考虑替换其他服务商。

代码结构比较简单很方便扩展喜欢的朋友欢迎给个Star、贡献PR。