Golang webserver starter kit
Depending on your requirements, you can customize and use the server configuration for different types of development, such as a monolith, a microservice, or a hybrid approach.
Each microservice or lambda function you can assign to a specific route as a proxy path using nginx configuration.
-
Prepare docker images
./run up:dev
-
Start serving
./run server
./run client
-
Check if routes are available
- Web: http://localhost:8080
- API: http://localhost:8080/api/ping
- Img: http://localhost:8080/img/index.jpg
- Cleanup
./run dn:dev
-
Prepare docker images
./run up:prod
-
Check if routes are available
- Web: http://localhost:8080
- API: http://localhost:8080/api/ping
- Img: http://localhost:8080/img/index.jpg
- Cleanup
./run dn:prod