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

ashwin95r avatar danielmai avatar gpahal avatar manishrjain avatar mohitranka avatar pawanrawal avatar rahul-sagore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gru's Issues

Correct spelling mistakes

  1. Add/Edit question, spelling of Positive. Also call it Positive Score maybe.
  2. Pagination, spelling of questions in No more questions.

Update Invite page doesn't show have validations

Add Invite page has validations but not update invite. I could update invite information by setting everything to empty. This is the same as the question add/edit. How come pages which Add and Edit have different behavior in terms of validations?

Make client UI dynamically sized.

The objective here is to see if we can vary the width of different boxes(questions and scoring) to display the information in the best possible manner.

Clean up edit candidate API

From candidate invite add/edit view, we should allow only one quiz to be selected.
If same candidate has to be invited to multiple quizzes, we can create multiple invites and shouldn't do this within the same invite for now.

Candidate Edit API should send non-empty old_quiz_id and quiz_id only if quiz which the candidate is invited to is changed. If quiz was not changed, then both should be empty.

Integrate Ping API and the timer

  1. /validate would also return a duration along with the token on successful authentication. This duration should be shown on the instructions screen and the initial time left should be the same as this.
  2. /ping needs to be called on every 5 sec in a background function after the quiz starts and until it is finished. It will return the time_left, this has to be synchronized with the total time left for the quiz.
  3. There should also be a time taken for each question which can be managed on the client side and should be reset on showing a new question.

Flicker on gru.dgraph.io

When I am not logged in and I go to gru.dgraph.io, before the login screen is shown a page with a blue navbar is rendered and then the login page is rendered.

When I am already logged in, the login page is rendered and then within a second the dashboard is rendered which again produces a flicker effect.

The correct page is rendered very quickly but still it makes for a weird output so we should correct this.

Concatenate js/css files.

Maybe have a build process which concatenates these files so that there are less network calls and the assets load faster?

Time taken on final screen should be total time taken.

Time taken on final screen shouldn't just be the time taken for the final question. It should be the total time taken in the test. You could potentially store the duration of the quiz the first time the validate API call is made and use that to calculate the time left.

Also, we don't need to show timeleft.

Shuffle the options for every question

The objective here is to randomize the order of options for a question before sending it to a candidate. We already randomize the order of questions. Something similar for answer options should work.

Question description should support Markdown

Question description(text right now), should be able to parse markdown and display it in the Preview tab. This should be appropriately encoded/decoded while communicating with the backend.

Problem with updating tags while updating Question

Problem occurs when on "Question Update UI", and update the tags.
When try to add/remove single tag in one updation, it work perfectly.

But if I remove existing tag and add new tag in one updation, I got successful response, but then Dgraph server stops with error (While hitting api for getting tags and question):

2016/10/07 09:42:02 lists.go:169: Dirty map size: 3
2016/10/07 09:42:02 list.go:701: Idx: 0. Unable to parse posting.

This was the delete mutation for removing existing relationship of tag with question, where 0x950d84987a78b56c is question's uid:

mutation { 
  delete { 
     <_uid_:0x950d84987a78b56c> <question.tag> <_uid_:0x52408512122d7951> .
     <_uid_:0x52408512122d7951> <tag.question> <_uid_:0x950d84987a78b56c> .
   }
}

This was the final mutation, associating new tag in last line

mutation {
      set {
          <_uid_:0x950d84987a78b56c> <text> "This%20is%20the%20formatter%20question%0A%0Avar%20i%20%3D%200%3B" .
          <_uid_:0x950d84987a78b56c> <positive> "1" .
          <_uid_:0x950d84987a78b56c> <negative> "-0.6" .
           <_uid_:0x7e4f97a6b71ecbec> <name> "adad" .
          <_uid_:0x950d84987a78b56c> <question.option> <_uid_:0x7e4f97a6b71ecbec> .
          <_uid_:0xc70bd4baf809b546> <name> "fsf" .
          <_uid_:0x950d84987a78b56c> <question.option> <_uid_:0xc70bd4baf809b546> .
          <_uid_:0xc729345cc6c937d5> <name> "fsf" .
          <_uid_:0x950d84987a78b56c> <question.option> <_uid_:0xc729345cc6c937d5> .
          <_uid_:0xdae6aa3f1df3d4db> <name> "fs" .
          <_uid_:0x950d84987a78b56c> <question.option> <_uid_:0xdae6aa3f1df3d4db> .
          <_uid_:0x950d84987a78b56c> <question.correct> <_uid_:0xdae6aa3f1df3d4db> .
          <_uid_:0x950d84987a78b56c> <question.tag> <_uid_:0xc0e1495c836bc87e> .
         <_uid_:0xc0e1495c836bc87e> <tag.question> <_uid_:0x950d84987a78b56c> .
     }
}

Need to debug this.

Steps to reproduce from UI:

  1. Add question with one tag associated to it.
  2. Go to edit question page, remove the associated tag, add new tag.
  3. Click on update button. You will get response "Successfully updated".
  4. Try to access "Show all Question", Dgraph will stop/ or will give error.

Show scoring info in different colors.

Right now the quiz has a box for scoring and shows the positive and the negative score within that. Ideally,we should have two boxes one below the another. The correct answer box could have green colored text and the wrong answer box text could be colored red.
This would make it easier for the candidate to see the different scores and would make this more visually appealing.

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.