- docker
- docker-compose
- golang
- curl
Is recommended to start adding new endpoints to the existing api.yaml
. Then build the whole flow to insert or publish.
Then you can remove everything else (the user CRUD example code).
Configure env file: copy env.dist
and name it to .env
make dev
Wait for
[00] Starting service
[00] INFO[0000] Using Pubsub Emulator: localhost:8085
[00] INFO[0000] server start at PORT 8080
Kill the process with ctrl+c
make debug
Wait for
[00] Got a connection, launched process __debug_bin (pid = 82232).
then attach the debugger
You can kill the process with ctrl+c
curl -v http://localhost:8080/v1/users
curl --location 'http://localhost:8080/v1/users' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "jcuzmar@protonmail.cl",
"name": "juan"
}'