You have to config .env
file as following:
MONGODB_CONN=mongodb://localhost://xxx
QQMAIL_NAME=xxxx@qq.com
QQMAIL_PASS=xxxx
# secret for encoding message
SECRET=xxxx
# allowed cors origin urls, https: and http: are different
CORS_URLS=https://hitokoto.heitaov.cn|http://localhost:9999
git submodule update --init --recursive
Run following commands to start the server.
npm install
npm run start
#or you can run `node app.js`
#or node application managers such as pm2