Skip to content

simple go server + docker + ci/cd with running tests

Notifications You must be signed in to change notification settings

aeonva1ues/simple_server

Repository files navigation

go_test

Idea of this simple project is practice with docker, writing tests and run they in ci/cd


Installation

Clone this repo

git clone https://github.com/aeonva1ues/simple_server

Running

Use make to run tests

make test

or to run web server

make compose-up

Alternative way to run server without make

docker-compose up --build -d && docker-compose logs -f

Endpoints

This practice not about writing web server, in this reason there is only one endpoint.

Send request with curl

curl localhost:8080/

If server is running correctly you should see response content <body>testpage</body>


Stop server

To stop the server you can use make file too

make compose-down

If you want run this command in the same terminal where you started the server, you should to press CTRL + C before it

About

simple go server + docker + ci/cd with running tests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published