- Gin
- Database SQL
- Goose
- Dockerize
- Migrations
- Cobra
- Unit test
- Login & Registration
- JWT
make dev
this command will be create docker instance main app and mysql database
make create-migration FILENAME=create_table_users
output file will be on database/migrations
go run . migrate
go run . migrate:down
GET /api/v1/healthcheck
POST /api/v1/auth/login
POST /api/v1/auth/register
GET /api/v1/users
email: [email protected]
password: password123
response :
"It's work"
payload :
{
"email": "[email protected]",
"password": "password123",
}
response :
{
"message": "success",
"data": {
"token": "string",
"user": {
"id": "number",
"uuid": "string",
"name": "string",
"email": "string",
"created_at": "string",
"updated_at": "string",
"deleted_at": "string",
}
},
}
payload :
{
"name": "admin",
"email": "[email protected]",
"password": "password123",
"confirm_password": "password123",
}
response :
{
"message": "success",
"data": {
"user": {
"id": "number",
"uuid": "string",
"name": "string",
"email": "string",
"created_at": "string",
"updated_at": "string",
"deleted_at": "string",
}
},
}
response :
{
"message": "success",
"data": [{
"id": "number",
"name": "string",
"email": "string",
"created_at": "string",
"updated_at": "string",
}],
}