项目已经部署在阿里云公网112.126.78.86,访问http://112.126.78.86。
本地的运行方式:
cd server && npm install
npm start
cd react && npm install
npm start
将TMJSPatchClient.h && TMJSPatchClient.m拖入到你的工程目录下
TMJSPatchClient.setDefArg(["uid":xxx])
TMJSPatchClient.setAppKey("589ae021685edd000fbb942e", withAppName: "wsd")
TMJSPatchClient.sync()
TMJSPatchClient.setDefArg(["uid":xxx])
TMJSPatchClient.setAppKey("589ae021685edd000fbb942e", withAppName: "wsd")
//TMJSPatchClient.sync()
TMJSPatchClient.setDevModel()
运行server之前需要开启本机mongodb服务 sudo mongod --dbpath data/db2 --logpath /var/log/mongodb.log --logappend,若没有安装mongodb请先安装
如果一切顺利 cd react && npm start 将会在浏览器打开localhost:4000,并出现登录页面
以下配置需要修改为你自己的
打开server/routers/register.js
var stmpTransport = nodemailer.createTransport("SMTP",{
host:"smtp.qq.com",//主机 qq邮箱,可修改
secureConnection:true,//使用SSL
port:465,
auth:{
user:"xxx", //你的邮箱帐号,
pass:"xxx"//你的邮箱授权码
}
});