Open Collaboration(协创云 in Chinese) is a web platform that supports online communication, Markdown editing & reading, translation and file storage.
This is the group project for Software Engineering(软件工程) of Xidian University(Spring 2024).
Our group includes Ruitian Zhong,Haoran Xu, Jiahao Li and Wenzhuo Li.
To deploy the server and front end, see the following sections.
If you have any problem, feel free to contact me!
Homepage Login Chat Markdown editing Docs list Docs Preview Files list
Install the dependencies for front end page.
# yarn
yarn
# npm
npm install
# pnpm
pnpm install
# bun
bun install
Compiles and hot-reloads for development
# yarn
yarn dev
# npm
npm run dev
# pnpm
pnpm dev
# bun
bun run dev
Lints and fixes files
# yarn
yarn lint
# npm
npm run lint
# pnpm
pnpm lint
# bun
bun run lint
-
Download Go on your machine.
-
If you have network problem,configure the GOPROXY:
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
# yarn
yarn build
# npm
npm run build
# pnpm
pnpm build
# bun
bun run build
cd server
go build server
nohup ./dmbe &
You have to correctly configure the port,appid,key to start the application successfully.
client_max_body_size 10M;
server{
listen 80;
server_name $your_server_name;
location /auth {
proxy_pass http://127.0.0.1:8080;
}
location /chat {
proxy_pass http://127.0.0.1:8080;
}
location /files{
proxy_pass http://127.0.0.1:8080;
}
location /docs{
proxy_pass http://127.0.0.1:8080;
}
location /api {
proxy_pass http://127.0.0.1:8080;
}
location / {
root /var/www/html/dist;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}
All configuration is in config.yaml. You can copy config.template.yaml:
cp config.template.yaml config.yaml
You can modify the config.yaml based on your need.
port: 8081
Read API docs.