Tasks:
- Please create POST API as Azure Function that will allow to:
- Store information about the customer in Storage Table.
- Extend your solution to be able to:
- Validate customer data:
- All fields must have values
- Birth year must be between 1900 and current year
- Email must have correct format
- Publish your solution to Azure Portal
- Try to test your solution
- Check how you can debug your function locally
- Connect your solution to page with form and publish it to Cloud
Hints:
- The customer should have the following fields:
- name
- surname
- country
- birth year
- To get SendGrid API key you need to click Manage after it will be created
- You will get about 15 USD for start in Twilio so you will be able to send messages
- Remember to configure CORS when you will try to connect web page to your back-end
- Triggers and bindings documentation
- Azure WebJobs SDK Extensions documentation – it will be quite useful when you will decide to write solution in Visual Studio
- Web page with the form is available at the following link. You should edit only js-files\formSubmitter.js file. There you should update API Url.