Skip to content

uk-gov-mirror/SkillsFundingAgency.das-activities

 
 

Repository files navigation

Activities

SFA.DAS.Activities.Worker subscribes to events via Azure Service Bus and indexes them via Elastic Search. SFA.DAS.Activities.Client allows the data to be queried via Elastic Search.

crest SFA.DAS.Activities
Build Build Status
crest SFA.DAS.Activities.Client
Client NuGet Badge

Requirements

  1. Install Visual Studio.
  2. Install Choclatey:
> iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
  1. Install Docker:
> choco install docker-for-windows
  1. Install Elastic Search image:
> docker pull docker.elastic.co/elasticsearch/elasticsearch:5.6.5
  1. Increase Docker Memory Allocation to 3500 in System Notification Area:
Docker (Right Click) -> Settings -> Advanced -> Memory - slide to 3584 or more

Run

  1. Run Elastic Search container:
> cd .\tools\elasticsearch.5.6.5
> docker-compose up -d
  1. Open the solution.
  2. Set SFA.DAS.Activities.Worker as the startup project.
  3. Browse to ~\AppData\Roaming.
  4. Add a directory named SFA.DAS.Activities.
  5. Add a directory to the above directory named add_paye_scheme.
  6. Add a file to the above directory named PayeSchemeAddedMessage.json containing the following json:
{
    "accountId": 5,
    "createdAt": "2017-01-01T12:00:00.000Z",
    "creatorUserRef": "04FCDEC7-5758-4BD2-A2D4-3E288E9EE047",
    "creatorName": "John Doe",
    "payeScheme": "333/AA00001"
}
  1. Set SFA.DAS.Activities.MessageHandlers as startup project
  2. Hit F5 to run the job.
  3. HTTP GET http://localhost:9200/local-activities/_search

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.7%
  • F# 5.1%
  • Gherkin 1.1%
  • Batchfile 0.1%