Skip to content
A Repo To Test Recording User Behavior
JavaScript HTML CSS PLpgSQL
Branch: master
Clone or download
Latest commit 98e2058 Jul 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin feat:add db config Jul 23, 2019
db feat:adjust Jul 29, 2019
public/stylesheets feat:start Jul 22, 2019
record-repo feat:adjust Jul 29, 2019
routes feat:adjust Jul 29, 2019
test feat:finished demo Jul 25, 2019
utils feat:adjust Jul 29, 2019
.gitignore start to record Jul 24, 2019
README.md add demo gif Jul 29, 2019
app.js start to record Jul 24, 2019
demo.gif feat:add Jul 29, 2019
package-lock.json feat:adjust style Jul 26, 2019
package.json feat:adjust style Jul 26, 2019
yarn-error.log feat:connect database Jul 23, 2019

README.md

UserBehaviorRecord

A Repo To Test Recording User Behavior

view

GitHub

start

  1. create database

You can use this SQL to create a table at local dataBase

SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;

DROP TABLE IF EXISTS `t_behavior`;
CREATE TABLE `t_behavior` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` char(20) NOT NULL DEFAULT '' COMMENT '用户名',
`ip` varchar(255) NOT NULL DEFAULT '' COMMENT '上报IP',
`date` varchar(255) NOT NULL DEFAULT '' COMMENT '日期',
`dataFile` varchar(255) NOT NULL DEFAULT '' COMMENT '数据文件',
`msg` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

BEGIN;
INSERT INTO `t_behavior` VALUES ('1', 'winty', '0.0.0.0', '2019-07-23', '','','0','0');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
  1. create node server

    npm start

  2. create test repo

    cd record-repo

    npm start

You can’t perform that action at this time.