A web server and cli command that returns JSON of the current members of Ghana's parliament
# `ghanamps` A simple cli and server that returns a JSON of all the members of parliament in Ghana.
## LIVE WEB VERSION
You can simply make a request to this URL to get the JSON:
ghanamps.herokuapp.com
## INSTALLATION
### Installation with Go installed
---
If you already have Go on your machine you can simply install this tool by running:
```bash
go install
github.com
```
This will install a binary `ghanamps` to the `bin` folder in your `$GOPATH`.
### Installation without Go installed
---
1. Go to the releases page and download the appropriate binary for your system.
1. Extract the binary from the zip archive
1. Put the binary in your PATH environment variable and make sure it is executable (Linux & macOS)
> If you don't know how to do this, here is a useful link to guide you:
zwbetz.com
4. Launch your command prompt and run:
> 1. `ghanamps members` for all members
> 2. `ghanamps leaders` for all leaders
> 3. `ghanamps -h` for help
## USAGE
The tool has two subcommands:
`members` for handling members
`leaders` for handling the leaders
### Get members
---
To get members you can run the tool by simply issuing the following command from your terminal.
```bash
ghanamps members
```
This will return a JSON array of all the current members of Ghana's parliament. Example below:
```json
[
{
"name": "ADAMA SULEMANA",
"party": "NDC",
"constituency": "TAIN CONSTITUENCY",
"region": "BONO REGION",
"photo": "
parliament.gh",
"profile": "
parliament.gh"
},
{
"name": "ADELAIDE NTIM",
"party": "NPP",
"constituency": "NSUTA/KWAMAN BEPOSO CONSTITUENCY",
"region": "ASHANTI REGION",
"photo": "
parliament.gh",
"profile": "
parliament.gh"
},
{
"name": "AGNES NAA MOMO LARTEY",
"party": "NDC",
"constituency": "KROWOR CONSTITUENCY",
"region": "GREATER A …