Git Product home page Git Product logo

golang_rest's Introduction

This project is simple HTTP API server written in go-lang.

Building

go build

Usage

First server needs to be started:

./golang_rest server [-p listen_port]

When server is started, questions should be uploaded:

/golang_rest client post \
    --body "2+2= ?" \
    --valid "4" \
    --wrong "5" \
    --wrong "44" \
    --server "http://localhost:8000"

Question id = 2

Finally, quiz can be taken:

./golang_rest client quiz --server "http://localhost:8000"
Question: 2+2= ?
	 0) 5
	 1) 44
	 2) 4
> 2

Total valid answers: 1
You where better than: 100.00 %

golang_rest's People

Stargazers

Bartłomiej Szałach avatar

Watchers

James Cloos avatar Bartosz Szafran 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.