Giter VIP home page Giter VIP logo

gru's Introduction

Gru

Gru is an open source adaptive test system for screening candidates for software engineering roles. It helps us identify and recruit the right minions.

You can read more about why we built Gru on our blog. Gru uses Dgraph as the database.

Running

Gru has three components, Gru server, Dgraph(v0.7.5) as the database and Caddy as a web server.

Gru server

  # Make sure you have Go installed on the server (https://golang.org/doc/install).
  go get github.com/dgraph-io/gru
  cd $GOPATH/src/github.com/dgraph-io/gru
  go build .
  ./gru --user=<gru_ui_username> --pass=<gru_ui_password> --secret="<long_secret_to_sign_jwt_token>" --sendgrid="<sendgrid_api_key>" -ip "https://gru.dgraph.io" -debug=true 2>&1 | tee -a gru.log
  • Note we use sendgrid for sending invite mails to the candidates. That won't work without the sendgrid key. For development purposes when the --sendgrid flag is empty, we just print out the invite link for taking the quiz to the console.
  • The -ip flag is used to specify the ip address of the Gru server.

Dgraph

  wget https://github.com/dgraph-io/dgraph/releases/download/v0.7.5/dgraph-linux-amd64-v0.7.5.tar.gz
  tar -xzvf dgraph-linux-amd64-v0.7.5.tar.gz
  ./dgraph/dgraph

In case you are reloading data into Dgraph from an export, you can use dgraphloader to load the rdf.gz exported file.

Dgraph runs on port 8080 by default.

Caddy

Note, you should modify the the address on the first line of the admin/webUI/Caddyfile and also the value of hostname in admin/webUI/app/app.module.js to either http://localhost:2020 for the purposes of local development or to the address of your production server before running Caddy web server.

  mkdir caddy
  wget https://github.com/mholt/caddy/releases/download/v0.10.8/caddy_v0.10.8_linux_amd64.tar.gz
  tar -xzvf caddy_v0.10.8_linux_amd64.tar.gz
  ./caddy --conf ../admin/webUI/Caddyfile

After this Gru should be up and running for you. You can visit http://localhost:2020 (if running locally) and login. Go ahead and add some questions, create some quizzes and invite some candidates.

Coverage Status

gru's People

Contributors

rahul-sagore avatar ashwin95r avatar pawanrawal avatar manishrjain avatar mohitranka avatar danielmai avatar gpahal 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.