Giter Site home page Giter Site logo

nickr's Introduction

NickR

Requirements

  • Download Go

  • Setup and test your Go installation

  • Install the Go dependencies

    go get github.com/tools/godep
    go get github.com/melvinmt/firebase

Development

  • In a terminal, issue the following command to run the server

    go build -o main

    This will compile the program as "main"

    You can then run the program (i.e. launch the server) with:

    ./main
  • To run tests, do

    go test -cover -race ./...

    If you want to generate test coverage output, use:

    go test -coverprofile=out.cov ./...

    You can then view the coverage report in your browser with:

    go tool cover -html=out.cov
  • If add new files don't forget to run

    godep save -r ./...

API

  • These are the available endpoints:

    URL Method DESC.
    / GET "index" page
    /users GET List all users
    /users/NAME GET List a user
    /users POST Create a user
    /users PUT Update a user
    /users DELETE Delete a user

    For each "non" GET request, send the following parameters in the request BODY

    {
      "name": "the users name",
      "nicknames": ["the users nicknames"]
    }

nickr's People

Contributors

julien avatar

Stargazers

Denis Ciccale avatar

Watchers

James Cloos avatar Javier López de Ancos 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.