Categorygithub.com/acky666/CredentialsCapture
modulepackage
0.0.2
Repository: https://github.com/acky666/credentialscapture.git
Documentation: pkg.go.dev

# README

CredentialsCapture

A simple REST End point to save some User Credentials a database done as a coding exercise.

Diagram

Testing

To Run the Unit Tests

./test.sh

When the system is running the following can be used as an Intergration test.

./testapi.sh

TODO:

  • Increase the Unit Test coverage
  • Add Unit Tests to the Controllers

Documentation

To generate the Swagger documenation from the project

./generatedocs.sh

Running

To run through docker, first build all the images.

./buildall.sh

Once you have built the images

docker compose up

To access the database,

docker exec -it credentialscapture_mysql_1 mysql -u sqluser -psqlpass

Curl Commands.

curl --data '{"firstname":"Mark","lastname":"Ackroyd","country": "UK", "email": "[email protected]"}' "http://localhost:8080/save"

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Git Commit.
No description provided by the author