- Automation of deployment is done using AWS CLI, make sure it is installed locally
- Deployment scripts are available for Linux/OS X (build.sh) as well as powershell script for windows environments (build.ps1)
- Obtain Access Key ID and Secret Access Key from your AWS account
The following projects are included in the solution:
| Project | Description |
|---|---|
| MiningService.Core | Holds all interfaces and business logic |
| MiningService.Infrastructure | Holds infrastructure implementations such as DynamoDb |
| MiningService.PostMine | Web api POST endpoint to start a mining job |
| MiningService.GetMine | Web api GET endpoint to retrieve status of a given job |
| MiningService.Infrastructure.Tests | Unit test project for testing the infrastructure layer |
- Edit the deploy.ps1 script and enter your AWS Access Key ID and Secret Access Key
- To run the build and deployment on windows machines execute the following in a powershell window:
deploy.ps1The PostMine endpoint starts a new mining operation
POST /mineThe GetMine endpoint retrieves the status of a mining job
GET /mine?jobId=cafcb792-132e-4091-a980-410af950077b