Clone this repo
git clone https://github.com/aeonva1ues/simple_server
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
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>
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