SkillAgentSearch skills...

Jstrack

javascript error tracking

Install / Use

/learn @javisantana/Jstrack
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

javascript error tracking server

This is a small webapp to track the errors thrown in your javascript apps

install

  • First edit track_settings.py file and change SITE_CODE var to one you like. Keep it secret.

  • First deploy this djando app in your server. You can do it in heroku (see heroku setup)

  • add the next tracking code in your aplication:

    (function() {
        var SERVER = 'http://yourserver.com';
        var s = document.createElement('script');
        s.type='text/javascript';
        s.async=true;
        s.src = SERVER + '/js/error_track.js?s=' + encodeURI(SERVER);
        (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(s);
    })();
  • point your browser to http://youserver/SITE_CODE. SITE_CODE is the variable you set in the first step.

heroku setup

  • install heroku gem

    $ gem install heroku

  • create the app:

    $ heroku create --stack cedar

  • push

    $ git push heroku master

  • create database

    $ heroku run python app/manage.py syncdb

don't forget to change variable SERVER in the tracker snippet to the url that heroku provides you

that's all, enjoy

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated9y ago
Forks1

Languages

JavaScript

Security Score

55/100

Audited on Aug 24, 2016

No findings