Giter Site home page Giter Site logo

perv's Introduction

perv

perv watches your project directories and logs events to help you keep track of your time. data can be stored in a mysql or sqlite database. it relies on inotify so it only works on linux.

to get started, run npm install. if using sqlite also run npm install sqlite3. if using mysql create an empty database to use for storage. copy either default-mysql.config.json or default-sqlite.config.json to config.json, editing it to contain access details for your database, an array of minimatch path patterns for files and directories you want to watch, and also the port you want the 'viewer' web app to run on.

to begin logging events, run 'node perv-watcher.js'. to view logged events, run 'node perv-viewer.js' and point your web browser to the machine and port you're running the viewer on. by default that would be http://localhost:8080/

perv's People

Contributors

jsdf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

imclab fatman2021

perv's Issues

Read me instructions

Hey James!

Your project looks really interesting. I was trying to give it a shot but didn't have much success. I was thinking you might want to update your readme file so newbies such as myself can have better luck to get it to work? Here's what I did (and where I'm stuck):

  1. Downloaded the master repo into my ~/Sites folder
  2. Created MySQL database called perv
  3. Duplicated and renamed confi.json and updated it's contents (BTW, this file has some left overs of some merge conflict, so I cleaned that up)
  4. On the console, I run npm install on my perv dir, which failed due to a problem to install [email protected] (weird error 127)
  5. Anyways I run node config.js
  6. Than node perv-watcher.js which throws an error on module.js:340: Cannot find module './build/Debug/inotify' โ€” so no watching for me
  7. Anyways I run node perv-viewer.js and go to localhost:61234 and that works but obviously has no data.

Any clue on what I might be doing wrong?

Cheers!

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.