Collector is a part of TheInteract project which is tracking user behavior based on javascript es6.
- Nodejs ~6.9.x
- Docker ^1.6.x
for demo and dev environment
npm install
- installation required dependencynpm build
- build js bundle for client sidenpm run start:w
- start server side and docker for development (!do not close this window)- execute scripts for initiate demo data on mongodb (or execute
init.sh
)docker exec -it interact-mongo mongo
- run mongo command on mongo containeruse interact
- switch to interact dbdb.createCollection("customer")
- create customer collectiondb.createCollection("user")
- create user collectiondb.customer.insert({"API_KEY":"IC9-55938-5","hostname":"localhost","features":[{"name":"card-1","versions":[{"version":"A","percent":0},{"version":"B","percent":0}]},{"name":"card-2","versions":[{"version":"A","percent":0},{"version":"B","percent":0}]}]})
- insert initiate data touser
collectionexit
- exit from mongo command
npm run example
- start demo page- access to demo page with
localhost:9999
- do not close this window
- access to demo page with
npm run test:w
- run test environment and watch a file in directorynpm run build:w
- build js bundle for client side and watch file in client directorynpm run stats:prod
- create webpack analysis file with production environment
lint
test
test:w
example
coverage
build
build:prod
stats
stats:prod
start
start:w
docker:pull
docker