Code Monkey home page Code Monkey logo

go-get-it's Introduction

go-get-it

Go + Redis app that allows to get and cache information via an API

Current stable version: 0.1.3

Dependencies

  • go dep - Used to manage 3rd party libs dependencies
  • github.com/garyburd/redigo - Redis lib, used to comunicate with redis
  • github.com/ghodss/yaml - Yaml file reader lib, used to reaad the configuration file

Lifecycle

This project uses the Makefile to manage this project lifecycle

  • Install the go dep go get -u github.com/golang/dep/cmd/dep
  • Use make dependecies to download the libraries the project uses
  • Use make test to run the app tests the
  • Use make install to generate the go executable file

How to setup

  1. Configure your $GOPATH to your go workspace is;
  2. Execute the make dependencies command to dowload the project dependencies to your go workspace;
  3. Execute the make install command to generate the app executable
  4. Start a Redis server
  5. Configure the local.yaml setting the redis client properties.
  6. Run the executable generated at the step 3

Project API

Resource Method Description
/save (POST) Save all parameters that is sent at the redis storage.
/retrieve (GET) Get all the registers that the server has (Sorry it uses KEYS redis command, dont use it in production)
/retrieve?query (GET) Get registers that matches the pattern (Sorry it uses KEYS redis command, dont use it in production)

Samples

/save (POST)

{
    "aa" : "a",
    "ab" : "b",
    "CC" : "c",
    "cD" : "d"
}

Logs

The project uses the default go lang logger. If you want log rotation, you can use the default linux logrotate to do this.

In case of any doubt, mail me: [email protected] =)

go-get-it's People

Contributors

mushira4 avatar

Watchers

James Cloos avatar  avatar

Forkers

monteirocicero

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.