command
module
Version:
v0.0.0-...-b3ad290
Opens a new window with list of versions in this module.
Published: Oct 26, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Golang REST API + Docker Example 🐭🐳📦
This is a brief example project showing how to package a REST API application as a Docker image running a static binary.
Usage
Docker Compose
Build the image and launch a container.
docker-compose up --build -d
docker-compose logs -f
Then hit it with requests using your favourite tool and follow the log output.
curl -x GET http://localhost:3000/users | jq
GitHub Codespaces
- Open this repository in github.com
- Press . to launch the GitHub web editor
- From the bottom-left corner, choose Continue working on and choose Create New Codespace
- Wait for the build to finish, and run
make start
to start the server inside the running container, or make build
to compile
VS Code Dev Container
- Open the repository in VS Code
- From the remote containers menu in the bottom-left corner, choose Reopen in container
- Repeat step #4 from above
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.