This is my Cloud Resume Challenge built on Azure. It's a static website hosted on Azure Storage, with a visitor counter built on Azure Functions. The website is built with HTML, CSS, and JavaScript. The visitor counter is built with .NET and Azure Functions.
If you'd like to build your own, here is the YouTube video video
I leverage Dev Containers for my development environment. If you'd like to use it, you'll need to install Docker and the Dev Containers for VS Code.
Once installed:
- Make sure Docker is running.
- Open the project in VS Code.
- Ctrl/Cmd + Shift + P to open the command palette.
- Type "Reopen in Container" and select:
.NET API
container is for working with Azure Functions backend.JS Frontend
container is for working with the frontend.
- VS Code will reload and you'll be in the container.
frontend/
: Folder contains the website.main.js
: Folder contains visitor counter code.
api/
: Folder contains the dotnet API deployed on Azure Functions.Counter.cs
: Contains the visitor counter code.
.github/workflows/
: Folder contains CI/CD workflow configurations..devcontainer
: Folder contains the my container configuration for VS Code.
The front-end is a static site with HTML, CSS, and JavaScript. It's static and has a visitor counter. The visitor counter data fetched via an API call to an Azure Function.
- I am a terrible designer, I used this template to create my site.
- I'm no JavaScript dev, but this article explains well and in a simple way how to use it to make an API call.
- Azure storage explorer is a handy tool to use when working with Storage Accounts
- This is how you can deploy static site to blob storage.
The back-end is an HTTP triggered Azure Functions with Cosmos DB input and output binding. The Function is triggered, it retrieves the CosmosDB item, adds 1 to it, and saves it and returns its value to the caller.
- Create a Cosmos DB account
- Create an HTTP triggered Azure Function in Visual Studio Code.
- Azure Functions Cosmos DB bindings
- Retrieve a Cosmos DB item with Functions binding.
- Write to a Cosmos DB item with Functions binding.
- You'll have to enable CORS with Azure Functions locally and once it's deployed to Azure for you website to be able to call it.
Testing is important, though my tests are simple, they exist. I am using .NET but some of these resources will apply to any language.
- This is how you can deploy a blob storage static site with GitHub actions.
- This is how you can deploy an Azure Function to Azure with GitHub Actions.
- Implement .NET testing in GitHub Actions.
- Implement tests into CICD.
- Create IaC files.
- Improve tests and tests documentation.