# express-UserServer **Repository Path**: zorn/express-es6-demo ## Basic Information - **Project Name**: express-UserServer - **Description**: 基于Express + es6 + mysql + reids 开发的用户服务器 - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2017-04-16 - **Last Updated**: 2022-10-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Express + es6 + mysql + reids 开发的用户服务器 ## 环境搭建 1. 需要安装mysql 和 redis,nodejs版本要 >= 7.8.0 2. npm i 3. npm i babel-core babel-cli -g 4. 配置setting.js,mysql和redis的连接方式,email的发送地址 5. npm start ## MySQL 用户表 CREATE TABLE `user` (  `uid` varchar(36) NOT NULL, `email` varchar(32) NOT NULL, `pwd` varchar(128) NOT NULL, `salt` char(32) NOT NULL, `create_time` int(10) NOT NULL, PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; SET FOREIGN_KEY_CHECKS=1; ## API接口 1. Email发送验证码 2. 注册 3. 登陆 4. 校验Token