GithubHelp home page GithubHelp logo

wxtodo-server's Introduction

wxtodo-server

这是结合腾讯云开发小程序的Server端代码.

需结合小程序客户端代码的online分支使用。

目录结构:

小程序项目
|-- wxtodo-client(online分支)
|-- wxtodo-server(master分支)
|-- project.config.json

project.config.json配置为:

{
	"client": "./wxtodo-client",
	"qcloudRoot": "./wxtodo-server",
	"setting": {
		"urlCheck": true,
		"es6": false,
		"postcss": true,
		"minified": true,
		"newFeature": true
	},
	"appid": "your appid",
	"projectname": "you project name",
	"condition": {}
}

练习使用Server端代码时,请根据教学视频,配置config.js文件,初始化数据库和COS服务。

wxtodo-server's People

Contributors

zhongkai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wxtodo-server's Issues

already login, skey is null

client的config.js改为我腾讯云的服务器
module.exports = {
host: 'https://yu4eil13.qcloud.la',
//RESTful API的版本号
apiVersion: 'v1'
};

server的config.js改为
module.exports = {
port: 5757,
//过期时间,秒
expireTime: 24 * 3600,
appid: 'wxbf8b6187ff94b03b',
secret: '已经改成appid的密码了',
mysql: {
host: 'https://yu4eil13.qcloud.la',
port: 3306,
user: 'root',
db: 'todo',
pass: '已经改成我数据库的密码了',
char: 'utf8mb4'
},
//文件云存储
cos: {
region: 'ap-guangzhou',
fileBucket: 'todo'
}
};

然后再phpmyadmin中手动把三张数据库的表建起来,放到一个名叫todo的数据库中,表的sql语句就直接复制粘贴,还需要改什么东西的配置嘛

现在还是无法登陆,感觉是数据库没关联上,求助

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.