This repository contains the backend implementation of the Tunwa Agnos project, which includes a password strength recommendation API. The backend is built using Go with the Gin framework, Nginx, PostgreSQL, and Docker Compose.
- Password strength validation and recommendation API.
- Logging of requests and responses.
- Unit tests for core functionalities.
- Go 1.22.5 or higher
- Docker and Docker Compose
- PostgreSQL
docker compose -f "docker-compose.yml" up -d --build
go test tunwa/utils
If you're using Visual Studio Code, you can also run the tests using the provided launch configuration.
- Open the command palette (Ctrl + Shift + P).
- Select Tasks: Run Test Task.
- Choose the
Launch Unit Tests Function
.
Once the application is running, you can access the API at http://localhost:3000. You can test API using tools like curl or Postman:
- POST
/api/strong_password_steps
- Request Body:
{"init_password": "aA1"}
- Request Body: