This commit is contained in:
glaucia86 2019-11-29 13:47:12 -03:00
Коммит 3f604dab68
8 изменённых файлов: 316 добавлений и 0 удалений

35
.github/ISSUE_TEMPLATE/bug_report.md поставляемый Normal file
Просмотреть файл

@ -0,0 +1,35 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Versions (please complete the following information):**
- OS: [e.g. mac]
**Challenge**
- Week: [e.g. 1, 2, 3, 4]
- Challenge: [e.g. 1, 2, ... , 25]
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.

22
.github/PULL_REQUEST_TEMPLATE/pull_request_template.md поставляемый Normal file
Просмотреть файл

@ -0,0 +1,22 @@
If you'd like to submit a Repo to the 25 days of Serverless, fill out the following template:
- Title: What you'd like your sample to be called.
________
- Description: A short block of text (~100 characters max) explaining what your sample does.
________
- Template: The raw path to the ARM template which deploys the application. eg https://raw.githubusercontent.com/anthonychu/azure-functions-openalpr/master/azuredeploy.json For more information, see the [README](https://github.com/Azure/FunctionLibrary/blob/master/README.md).
________
- Repository: The URL of a public git repository.
________
- Language (optional): The language your code is written in (Functions only.)
________
- Technology (optional): Whether your app is a Function App or a Logic App
________
- Solution Area (optional): A broad level categorization of what type of solution you've built (IoT, ML, Data Processing, ...)
________

1
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1 @@
.DS_Store

9
CODE_OF_CONDUCT.md Normal file
Просмотреть файл

@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns

21
LICENSE Normal file
Просмотреть файл

@ -0,0 +1,21 @@
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

85
README.md Normal file
Просмотреть файл

@ -0,0 +1,85 @@
# 25 Days of Serverless
[![advent-of-serverless.gif](https://s5.gifyu.com/images/advent-of-serverless.gif)](https://gifyu.com/image/vNo5)
## Main Goal 🎯
There is no better way to learn a new technology than with gamification. And we're here to help you learn Serverless once and for all with 25 daily challenges: 25 days of Serverless! Come join!
## Rules 🎫
1. Solve each [coding challenge](https://aka.ms/25daysofserverless) in the first 25 days of December.
2. Tweet your progress during the challenge period using the hashtag [#25DaysOfServerless](https://twitter.com/search?q=%2325DaysOfServerless).
3. Submit the code of your solution as a PR to this repository before the sample solution gets published (usually 24h after the challenge is published).
4. You may get picked for a mention during our weekly wrap-up video. If you submit a PR you agree that we mention your name and/or nicknames (GitHub, Twitter) publicly in the context of 25 Days of Serverless.
## Suggested Resources 📑
* **[Visual Studio Code](https://code.visualstudio.com/?WT.mc_id=25daysofserverless-github-cxa)**
* **[Azure Account](https://azure.microsoft.com/?WT.mc_id=25daysofserverless-github-cxa)**
* **[Azure Functions Extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions&WT.mc_id=25daysofserverless-github-cxa)**
## Azure For Students Account ⭐️
If you are a student at a College or University, you can create your **[Azure for Students](https://azure.microsoft.com/free/students/?WT.mc_id=25daysofserverless-github-cxa)** account. This account will give you the benefit of having a $ 100 credit to use the Azure Services for free, without having a credit card and free developer tools as well. To activate this account, just access the link **[HERE](https://azure.microsoft.com/free/students/?WT.mc_id=25daysofserverless-github-cxa)**.
## Submitting your solution as a pull request (PR) 🔥
Be among the first contributors and solve the challenge within 24 hours from publishing. To do so, fork this repository, create your solution in the corresponding subdirectory and create a pull request.
- **[Week 1](#week-1)**
- [Challenge 1](week-1/challenge-1/README.md)
- [Challenge 2](week-1/challenge-2/README.md)
- [Challenge 3](week-1/challenge-3/README.md)
- [Challenge 4](week-1/challenge-4/README.md)
- [Challenge 5](week-1/challenge-5/README.md)
- [Challenge 6](week-1/challenge-6/README.md)
- [Challenge 7](week-1/challenge-7/README.md)
- **[Week 2](#week-2)**
- [Challenge 8](week-2/challenge-8/README.md)
- [Challenge 9](week-2/challenge-9/README.md)
- [Challenge 10](week-2/challenge-10/README.md)
- [Challenge 11](week-2/challenge-11/README.md)
- [Challenge 12](week-2/challenge-12/README.md)
- [Challenge 13](week-2/challenge-13/README.md)
- [Challenge 14](week-2/challenge-14/README.md)
- **[Week 3](#week-3)**
- [Challenge 15](week-3/challenge-15/README.md)
- [Challenge 16](week-3/challenge-16/README.md)
- [Challenge 17](week-3/challenge-17/README.md)
- [Challenge 18](week-3/challenge-18/README.md)
- [Challenge 19](week-3/challenge-19/README.md)
- [Challenge 20](week-3/challenge-20/README.md)
- [Challenge 21](week-3/challenge-21/README.md)
- **[Week 4](#week-4)**
- [Challenge 22](week-4/challenge-22/README.md)
- [Challenge 23](week-4/challenge-23/README.md)
- [Challenge 24](week-4/challenge-24/README.md)
- [Challenge 25](week-4/challenge-25/README.md)
## Discord Channel 💬
Discussion Channels are available on Discord: [Permanent Link to Server](https://discord.gg/8kbAeud)
We ask everyone to be fair and helpful and to not spoil the challenges by publishing solutions prominently. The [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) applies to all discussion channels.
## Contributing 🚩
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
**(documentation under development)**

102
RESOURCES.md Normal file
Просмотреть файл

@ -0,0 +1,102 @@
# 25DaysOfServerless - CA Resources
Here is the proposed prefix paragraph for your challenge blog posts.
> Prefix For Challenge Posts
This article is part of [#25DaysOfServerless](http://aka.ms/25daysofserverless). New challenges will be published every day from Microsoft Cloud Advocates throughout the month of December. Find out more about how Microsoft Azure enables your [Serverless functions](https://docs.microsoft.com/azure/azure-functions/?WT.mc_id=25days_devto-blog-cxa).
> Footer for Challenge Posts
Watch for surprises all during December as we kick off the 25 Days of Serverless. Stay tuned here on dev.to as we feature challenges and solutions! Sign up for a [free account on Azure](https://azure.microsoft.com/free/?WT.mc_id=25days_devto-blog-cxa) to get ready for the challenges!
> Trackable links for Content Resources
Here is a list of resource links that you can use for the challenges. These are coded to use the default `?WT.mc_id=25daysofserverless-github-cxa` tracking id for this challenge.
## Content
> Learning Paths / Serverless
* [Create Serverless Applications](https://docs.microsoft.com/en-us/learn/paths/create-serverless-applications/?WT.mc_id=25daysofserverless-github-cxa)
* [Architect Message Brokering and Serverless Applications in Azure](https://docs.microsoft.com/en-us/learn/paths/architect-messaging-serverless/?WT.mc_id=25daysofserverless-github-cxa)
> Modules / Azure Functions
* [Create serverless logic with Azure Functions](https://docs.microsoft.com/en-us/learn/modules/create-serverless-logic-with-azure-functions/?WT.mc_id=25daysofserverless-github-cxa)
* [Monitor GitHub events by using a webhook with Azure Functions](https://docs.microsoft.com/en-us/learn/modules/monitor-github-events-with-a-function-triggered-by-a-webhook/?WT.mc_id=25daysofserverless-github-cxa)
* [Develop, test and deploy an Azure Function with Visual Studio ](https://docs.microsoft.com/en-us/learn/modules/develop-test-deploy-azure-functions-with-visual-studio/?WT.mc_id=25daysofserverless-github-cxa)
* [Execute an Azure Function with triggers](https://docs.microsoft.com/en-us/learn/modules/execute-azure-function-with-triggers/?WT.mc_id=25daysofserverless-github-cxa)
* [Chain Azure Functions together using input and output bindings](https://docs.microsoft.com/en-us/learn/modules/chain-azure-functions-data-using-bindings/?WT.mc_id=25daysofserverless-github-cxa)
* [Enable automatic updates in a web application using Azure Functions and SignalR Service ](https://docs.microsoft.com/en-us/learn/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr/?WT.mc_id=25daysofserverless-github-cxa)
* [Develop, test and publish Azure Functions by using Azure Functions Core Tools](https://docs.microsoft.com/en-us/learn/modules/develop-test-deploy-azure-functions-with-core-tools//?WT.mc_id=25daysofserverless-github-cxa)
* [Share your location as a text message using Azure Functions and Twilio ](https://docs.microsoft.com/en-us/learn/modules/send-location-over-sms-using-azure-functions-twilio/?WT.mc_id=25daysofserverless-github-cxa)
* [Expose multiple Azure Functions apps as a consistent API by using Azure API Management](https://docs.microsoft.com/en-us/learn/modules/build-serverless-api-with-functions-api-management/?WT.mc_id=25daysofserverless-github-cxa)
> Talks / Microsoft Ignite 2019
* [AFUN95 Figuring Out Azure Functions](https://myignite.techcommunity.microsoft.com/sessions/83218?source=sessions) by [Frank Boucher](https://myignite.techcommunity.microsoft.com/speaker/585722)
* [BRK3063 Building enteprise capable serverless applications](https://myignite.techcommunity.microsoft.com/sessions/81605?source=sessions) by [Eduardo Laureano](https://myignite.techcommunity.microsoft.com/speaker/588664) and [Matthew Henderson](https://myignite.techcommunity.microsoft.com/speaker/595253)
## Docs
> Collections
* [25DaysOfServerless Learn Modules](https://docs.microsoft.com/en-us/users/nityan/collections/k73ohwqzen712?WT.mc_id=25daysofserverless-github-cxa)
> Overview
* [Azure Functions documentation](https://docs.microsoft.com/azure/azure-functions/?WT.mc_id=25daysofserverless-github-cxa)
* [Azure SDK for JavaScript Documentation](https://docs.microsoft.com/azure/javascript/?WT.mc_id=25daysofserverless-github-cxa)
* [Azure Functions Code Samples](https://docs.microsoft.com/en-us/samples/browse/?products=azure-functions?WT.mc_id=25daysofserverless-github-cxa)
* [Azure CLI Code Samples](https://docs.microsoft.com/en-us/azure/azure-functions/functions-cli-samples?WT.mc_id=25daysofserverless-github-cxa)
> Quickstarts
* [Create your first function using Visual Studio Code (_JavaScript_)](https://docs.microsoft.com/azure/azure-functions/functions-create-first-function-vs-code?WT.mc_id=25daysofserverless-github-cxa)
* [Create your first function using Visual Studio (_C#_)](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-your-first-function-visual-studio?WT.mc_id=25daysofserverless-github-cxa)
* [Use _Java_ and Maven to create and publish a function to Azure](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-java-maven?WT.mc_id=25daysofserverless-github-cxa)
* [Create your first _PowerShell_ function in Azure](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-powershell?WT.mc_id=25daysofserverless-github-cxa)
* [Create an HTTP triggered _Python_ function in Azure](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-python?WT.mc_id=25daysofserverless-github-cxa)
> Triggers & Bindings
* [About Triggers and Bindings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings?WT.mc_id=25daysofserverless-github-cxa)
* [Trigger Azure Functions using webhooks in Azure IoT Central](https://docs.microsoft.com/en-us/azure/iot-central/core/howto-trigger-azure-functions?WT.mc_id=25daysofserverless-github-cxa)
* [Twilio Binding for Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-twilio?WT.mc_id=25daysofserverless-github-cxa)
* [Azure Functions HTTP triggers and bindings](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook?tabs=javascript&WT.mc_id=25daysofserverless-github-cxa)
* [SignalR Service bindings for Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-signalr-service?WT.mc_id=25daysofserverless-github-cxa)
> For Databases
* [Azure Cosmos DB](https://docs.microsoft.com/en-us/azure/cosmos-db?WT.mc_id=25daysofserverless-github-cxa)
* [Azure Cosmos DB bindings for Azure Functions 1.x](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb?tabs=csharp&WT.mc_id=25daysofserverless-github-cxa)
* [Azure Cosmos DB bindings for Azure Functions 2.x](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2?WT.mc_id=25daysofserverless-github-cxa)
* [Azure Blob Storage](https://docs.microsoft.com/en-us/azure/storage/?WT.mc_id=25daysofserverless-github-cxa)
* [Create a function triggered by Azure Blob storage](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function?WT.mc_id=25daysofserverless-github-cxa)
> For IoT
* [Tutorial: Deploy Azure functions as IoT Edge modules](https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-deploy-function?toc=%2fazure%2fazure-functions%2ftoc.json&WT.mc_id=25daysofserverless-github-cxa)
* [Azure IoT Hub bindings for Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-iot?WT.mc_id=25daysofserverless-github-cxa)
> Durable Functions
* [About Durable Functions](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?WT.mc_id=25daysofserverless-github-cxa)
* [Create your first durable function _in JavaScript_](https://docs.microsoft.com/en-us/azure/azure-functions/durable/quickstart-js-vscode?WT.mc_id=25daysofserverless-github-cxa)
* [Create your first durable function _in C#_](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-create-first-csharp?WT.mc_id=25daysofserverless-github-cxa)
* [Durable Functions Samples](https://docs.microsoft.com/en-us/samples/browse/?products=azure-functions&term=durable?WT.mc_id=25daysofserverless-github-cxa)
* [Durable Functions Documntation](https://docs.microsoft.com/en-us/azure/azure-functions/durable/?WT.mc_id=25daysofserverless-github-cxa)
> Deployment - CI/CD
* [Continuous deployment for Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-continuous-deployment?WT.mc_id=25daysofserverless-github-cxa)
* [Continuous delivery by using Azure DevOps](https://docs.microsoft.com/en-us/azure/azure-functions/functions-how-to-azure-devops?WT.mc_id=25daysofserverless-github-cxa)
* [Continuous delivery by using GitHub Action](https://docs.microsoft.com/en-us/azure/azure-functions/functions-how-to-github-actions?WT.mc_id=25daysofserverless-github-cxa)
* [Azure Functions on Kubernetes with KEDA](https://docs.microsoft.com/en-us/azure/azure-functions/functions-kubernetes-keda?WT.mc_id=25daysofserverless-github-cxa)
## Tools
* [Visual Studio Code](https://code.visualstudio.com/?WT.mc_id=25daysofserverless-github-cxa)
* [Azure Functions for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions&WT.mc_id=25daysofserverless-github-cxa)
* [Azure Functions Core Tools](https://docs.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=25daysofserverless-github-cxa)
* [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest?WT.mc_id=25daysofserverless-github-cxa)

41
SECURITY.md Normal file
Просмотреть файл

@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.3 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->