### AssNat
- setup go environement
install local MongoDB
install golang sdk create a directory to host thego workspace
(i.e. ~/go_workspace)
defineGOPATH̀
environnement variable pointing to previously defined workpace
create asrc/
directory inside the worksapce
clone the project there
- 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
- run the application
a
bin/
directory should be in thego_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