Giter Site home page Giter Site logo

op-validator's Introduction

op-validator

Synopsis

A challenge/exercise validator for the programming challenges in osprogramadores.com.

Usage

This program has three main handlers:

  • The root handler (/), which serves a simple web page where where users can choose the desired challenge and type their github usernames and their program's output. On submit, the page makes an XMLHttpRequest to the check handler to verify the validity of the user's input.

  • The check handler (/check) take the challenge, username and user's solution and attempts to match the solution to the canonical solution set in the config file. If the user's input is valid, the program generates a token from the input data + a secret and instructs the user to add this token to a file called .valid in their repository before submitting a pull request.

  • The verify token handler (/verify-token) takes the challenge, username, and a token, and verifies the validity of this token. The program returns an HTTP 200 if the token is OK or HTTP 400 otherwise. The purpose of this handler is to allow remote token verification.

op-validator's People

Contributors

marcopaganini avatar kortkamp avatar

Watchers

James Cloos 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.