Giter VIP home page Giter VIP logo

hooks-svn-arangodb's Introduction

hooks-svn-arangodb

ArangoDB Foxx Service and node.js bot to sync SVN revision logs into ArangoDB

This instrumentary has the following tools

  • CLI utility written as Node.js made bot that you can execute on time intervals or as a post commit hook for Visual SVN Server or whatver else you might be using.

  • Foxx service that runs inside ArangoDB


ArangoDB Foxx

https://www.arangodb.com/why-arangodb/foxx/ Foxx is a JavaScript framework for writing data-centric HTTP microservices that run directly inside of ArangoDB.


Running whole thing

Preparing ArangoDB

Once you downloaded hooks_svn_arangodb you will need just few more steps

  • Make sure tht your ArangoDB is up and runnign and accessible from the machine where you install your service
  • Run foxx install on foxx-service folder that comes from this repo

Once service is installed to the endpoint you specified, you can test it by going on http://your_arangodb_server/.../your_endpoint/hooks-svn/ and it should bring you response like the following:

{
    "result": "ok"
}

Here we go, you've got running.

You might want to put your Foxx service behind some proxy with different authentication rules and so on, like in some of my cases, I put my foxx services behind /api virtual folder on my web apps or even giving api subdoman to them.

Setting up the bot

Now we need to setup the bot itself, which is pretty straight forward CLI writtend in Node.js that using unirest, commander and node-svn-ultimate modules.

  • Inside of . svn-bot folder run
yarn

Once dependencies are installed you can run yarn start

yarn start --help

CLI options

  -a, --address [svn address]      address                                                                                                                                                    
  -u, --username [username]        username                                                                                                                                                   
  -p, --password [password]        password                                                                                                                                                   
  -d, --destination [destination]  API destination where data will be sent                                                                                                                    
  -h, --help                       output usage information      

While -a, -u, -p are all about connecting to your SVN server, -d is the address where your SVN web hook is located

hooks-svn-arangodb's People

Contributors

skitsanos avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.