-
First clone the repository
-
Execute following commands
cd simpleWebSeverdocker build -t simplewebserver .docker run -it --rm -p 8000:8000 -v $PWD/src:/go/src/simpleWebServer --name testserver simplewebserverdocker exec -it testserver curl --request GET localhost:8000/{"status":"OK","code":200}docker exec -it testserver curl --request GET localhost:8000/add/a/45/b/67{"sum":112}
-
Also included unit testing of http handler and routing with code coverage of above 82.1%
cd srcgo test -vgo test -cover
-
Notifications
You must be signed in to change notification settings - Fork 1
GO based REST server with Docker containerised solution and proper unit testing
License
ravip18596/simpleWebServer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
GO based REST server with Docker containerised solution and proper unit testing
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published