Categorygithub.com/lucasolsi-wex/go-crud
repository
0.0.0-20240215205830-1ab7a8ca405a
Repository: https://github.com/lucasolsi-wex/go-crud.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

ps-tag-onboarding-go

The project

This is the Go version of the onboarding exercise for the Tag Team.

Frameworks, libs and technologies

Pre-requisites

  • Docker
  • Go

Getting started

To run the application, make sure you have Docker and Go installed.

  1. Clone the repository
git clone https://github.com/lucasolsi-wex/ps-tag-onboarding-go
  1. Navigate to ps-tag-onboarding-go
cd ps-tag-onboarding-go
  1. Switch to structure-refactor branch:
git checkout structure-refactor
  1. Run the containers:
docker-compose up -d

Endpoints

  • POST /user
curl --request POST \
--url http://localhost:8080/user \
--header 'Content-Type: application/json' \
--data '{
"firstName": "First",
"lastName": "Name",
"email": "[email protected]",
"age": 19
}'
  • GET /user/{id}
curl --request GET \
  --url http://localhost:8080/user/65804b360a2378fc9b806899