# MarketMinds - Go Backend

## Usage
To be defined...
  
## Development

### Build and run
The scripts are defined in the Makefile.

```bash
# download dependencies 
make dep

# build backend
make build

# run backend
make run

# clean backend
make clean
make clean_all
```

### Database setup and migration

#### Install the migrate tool
```bash
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
```

DB Migration is done with the postgres package of golang-migrate.
Find a tutorial on the following link
[Postgres Tutorial for golang-migrate](https://github.com/golang-migrate/migrate/blob/master/database/postgres/TUTORIAL.md).

