Coder Social home page Coder Social logo

gouter's Introduction

Gouter

Please be aware that this project is only a proof of concept, do not expect good code or it being fully functional.

Gouter is a simple url rewriter Router written in GoLang. The project is written as a proof of concept and a learning exercise of the Go Programming Language. Please refer to the following sections for instructions on how to run the project, configure the project and any additional information, which might be useful.

Installation

Installation of Gouter will require the Go Programming language. After installing Go you will be able to execute the application as desired.

Install the golang libraries from http://golang.org/doc/install. Once the source code is checked out you can install the 3rd party packages from the make shell script (make.sh). Bazaar might be required if you want to update the mgo libraries. Please refer to the mgo documentation for additional installation instructions.

Check the source code out from the repo and start it by running

go run gouter.go

In addition you can set the port by using the flag

go run gouter.go -port=x

where x is the port number you want the router to listen on.

Configuration

Gouter can be configured at an application level and a runtime level. The application configuration can be found in the config directory. The gcfg library is used to manage the database connections and other application specific configurations. In addition the default port and administration url can be set in the application configuration.

The runtime configuration and monitoring can be accessed from the administration url (By default it will be http://localhost:8080/admin). Please use the web interface to configure and manage the routes. Review analytics regarding the requests via the router, and to help troubleshoot any issues that might arise from the router.

The route name and source fields must be unique.

Data

Route data and usage statistics are stored in a local mongo database. By default the name of the database will be gouter and the host will be localhost. Please update the application configuration to suite your environment.

References

Here are some useful links for the Project and GoLang in general

gouter's People

Contributors

stevenandrewcarter 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.