Skip to content

TheInteract/Artemis

Repository files navigation

Project Artemis

Build Status Dependency Status Coverage Status

Collector is a part of TheInteract project which is tracking user behavior based on javascript es6.

Prerequisite

  1. Nodejs ~6.9.x
  2. Docker ^1.6.x

Getting Started

for demo and dev environment

  1. npm install - installation required dependency
  2. npm build - build js bundle for client side
  3. npm run start:w - start server side and docker for development (!do not close this window)
  4. execute scripts for initiate demo data on mongodb (or execute init.sh)
    • docker exec -it interact-mongo mongo - run mongo command on mongo container
    • use interact - switch to interact db
    • db.createCollection("customer") - create customer collection
    • db.createCollection("user") - create user collection
    • db.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 to user collection
    • exit- exit from mongo command
  5. npm run example - start demo page
    • access to demo page with localhost:9999
    • do not close this window

Additional Command

  • npm run test:w - run test environment and watch a file in directory
  • npm run build:w - build js bundle for client side and watch file in client directory
  • npm run stats:prod - create webpack analysis file with production environment

Command Directory

Root Directory

  • lint
  • test
  • test:w
  • example
  • coverage

Client Directory

  • build
  • build:prod
  • stats
  • stats:prod

Server Directory

  • start
  • start:w
  • docker:pull
  • docker