Skip to content
Go back

搭建在线匿名语音聊天应用mornin.fm

Published:  at  04:32 PM

项目架构

搭建后端服务

git clone https://github.com/MixinNetwork/kraken
cd kraken && go build

cp config/engine.example.toml config/engine.toml
-------------------------------------------------
[engine]
# the network interface to bind
interface = "eth0"
# the IP address to bind, empty allows the engine to get it from interface
address = "192.168.40.41"
log-level = 10
# the UDP port range, leave them to 0 for default strategy
port-min = 0
port-max = 0

[turn]
host = "turn:turn.kraken.fm:443"
# must be identical to coturn static auth secret
secret = "812ecb0604d9b90c4aa43a0e3fd1ba85"

[rpc]
port = 7000
-------------------------------------------------


./kraken -c config/engine.toml 

搭建前端项目

git clone https://github.com/lyricat/mornin.fm

yarn install

# 修改配置文件,指定后端服务地址
# nuxt.config.ts
-------------------------------------------------
env: {
    TOKEN: process.env.TOKEN || '',
    API_BASE: process.env.API_BASE || 'http://192.168.40.41:7000',
    APP_ENV: process.env.APP_ENV || ''
}
-------------------------------------------------

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate


Previous Post
使用pyjm3加密python源码
Next Post
如何购买划算且服务优质的机票