An open API service indexing awesome lists of open source software.

https://github.com/ericmcbride/go-dfw-testing

API used for GO-DFW meetup presentation
https://github.com/ericmcbride/go-dfw-testing

dallas dfw go golang harness postgres restapi restapi-example testing

Last synced: 2 months ago
JSON representation

API used for GO-DFW meetup presentation

Awesome Lists containing this project

README

          

# Go DFW Meetup
### Testing A Restful API

This codebase is an example RESTFUL API for posting cars to a postgres database.

#### PRE REQS:

- Docker installed (https://www.docker.com/)
- Tested on MAC OS X

#### Make Commands (ran from root of project):
- `Make build-linux` (will build linux binary to be served in docker)
- `Make test` (docker compose build/docker-compose up/test) <- Spins up postgres and app
- `Make run` (docker-compose up project)
- `Make test-func` (Runs functional tests)