A personalities registrer api, using golang in backend with gorilla as router and handler and gorm as database interface
- Go 1.19 or high
- Node.js 16.9 or lower
- Docker
- Backend
go mod tidy
go run main.go
-- or
go build -o api main.go
./api
- Frontend
npm install
npm update
npm start
- Database
docker compose -f ./database.yaml up -d
- Url: http://{IP}:8000/api/personalidades
- Request Expected:
Method: POST
{
"nome": "Name"
"historia": "History"
}
- Url: http://{IP}:8000/api/personalidades/{ip}
- Request Expected:
Method: DELETE
{
"nome": ""
"historia": ""
}
- Url: http://{IP}:8000/api/personalidades/{ip}
- Request Expected:
Method: PUT
{
"nome": "New Name"
"historia": "New History"
}
- Url: http://{IP}:8000/api/personalidades/
- Request Expected:
Method: GET
{
"nome": ""
"historia": ""
}
- Url: http://{IP}:8000/api/personalidades/{id}
- Request Expected:
Method: GET
{
"nome": ""
"historia": ""
}