Skip to content

TechRaceProject/golang-api

Repository files navigation

Golang with Docker

ONLY for DEV, not for production

A very simple Docker-compose to use Go and Docker

Run Locally

Clone the project

 git@github.com:TechRaceProject/golang-api.git

Run the docker-compose

  docker compose build --no-cache --pull
  docker-compose up -d

Log into the GO container

  docker exec -it  nom-du-container bash

Testing

Run api login test without docker

  go test ./src/tests/auth/login -v

Run api tests

  docker-compose exec api go test ./src/tests/... -v

Run every api tests from a single test repository

  docker-compose exec api go test ./src/tests/auth/login -v

Run a single test file

  docker-compose exec api go test ./src/tests/auth/login -v -run Test_can_login_if_valid_email_and_password_are_provided

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages