A simple Golang project to verify if DNA is from Mutant or Human
Developed by Camilo Díaz Jaimes
You will need the following things properly installed on your computer.
Following you can find the instructions:
git clone https://github.com/camilodiazj/mutants.git
this repository.- Change into the new directory
cd mutants
. - Execute
go build
- You can see the app binary in bin directory of you
$GOPATH
Run go build
to build the project. The build artifacts will be stored in the Root of the
directory.
Run go test ./... -cover
to execute the unit tests with coverage.
- If you are in Windows, is recommended to use Git Bash to run the bash commands.
- Into the root project
cd mutants
- You need a connection to AWS DynamoDB to persist data, to achieved it You need the
following credentials saved into your environment variables.
- (Attached policy with only following actions: dynamodb:PutItem, dynamodb:Scan)
export AWS_ACCESS_KEY_ID=provided-key-id
export AWS_SECRET_ACCESS_KEY=provided-secret-access-key
- Once you have credentials to DynamoDb connection, build the artifact:
go build
- Next, you need to change the access permission of file to be executable:
sudo chmod +x mutants
- Run mutants application
./mutants
Is recommended to use POSTMAN to consume the Endpoints. Postman Collection in
mutants/postman_collection.json