heb-dtc / assnat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

### AssNat

  1. setup go environement

install local MongoDB
install golang sdk create a directory to host the go workspace (i.e. ~/go_workspace)
define GOPATH̀ environnement variable pointing to previously defined workpace
create a src/ directory inside the worksapce
clone the project there

  1. install the application

install all the dependencies and the application go into the go_workspace and run the following commands:
$ go get gopkg.in/mgo.v2
$ go get github.com/julienschmidt/httprouter
$ go get gopkg.in/mgo.v2/bson
$ git clone https://github.com/amasciul/AnCrawler.git
$ go install  

  1. run the application

a bin/ directory should be in the go_workspace in which you can find the binary of the application
to start the application, run $ ./assnat

The application is reachable on localhost:3000 and exposes those endpoints:

  • /deputy/:<name> : find a deputy by name
  • /deputy : list all deputees

About


Languages

Language:Go 100.0%