Hello and welcome to the Hungerrush on-boarding documentation. Feel free to add any missing documentation if need be.
To get started on the Designer backend, you need an understanding of C# and .NET. For more information on the tech stack please see Backend Architecture.
We encountered an error while setting up the project with Visual Stuido and VS Code on Mac.
Visual Studio: When making a http request through postman, it does not connect to the api endpoint. Error: connect ECONNREFUSED 127.0.0.1:7075
Visual Studio Code: Could not get the debugger to work. There seems to be something wrong with the code signing of vsdbg and/or vsdbg-ui.
Please request access to the following from the Hunger Rush team:
To open the Designer project; go to the file location on your computer -> find the Themeservice.sln file -> right click -> open with the editor of choice
To run hungerrush service locally, make sure to have Azure emulator installed on your computer.
To test service locally;
azurite to start the blog service.local before sending a http request to the service.
for more infiormation checkout “Running Azure Function Locally”The Hungerrush services have been setup on Azure cloud. It has three environments: development, staging, and production. Note: when testing the Azure application, do use the developemnt environment. pay close attention not to set the environment to PRODUCTION.
To test the service on Azure;
get notifications.developmentget notification.An overview of the designer architecture overview can be found here: Architecture
We use Postman to test API endpoints on the local environment. If you do not have access to the Designer workspace, please request access from the Hungerrush team.
To test EventGrid functionality on Postman, you need to simulate the call and pass the data through.
Example call:
URL (POST): http://{{ServiceEndpoint}}/runtime/webhooks/EventGrid?functionName={{FunctionName}}
{
"id": "14728493827498743",
"eventType": "yourEventType",
"eventTime": "10:59:00.000",
"subject": "yourSubject",
"data": {
{{BodyContent}}
}
}
NB: When posting for an EventGrid function, you need to add a special header:
“aeg-event-type” -> “Notification”
Designer’s Terraform Infrastructure can be found here. To modify any infrastructure, you need to log in via the Azure cli and authenticate using any Azure web console user details that exist and are available to the team.