Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 5 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Note Bookmark

[![.github/workflows/azure-dev.yml](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml/badge.svg)](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml)
![GitHub Release](https://img.shields.io/github/v/release/fboucher/NoteBookmark) ![.NET](https://img.shields.io/badge/9.0-512BD4?logo=dotnet&logoColor=fff) [![.github/workflows/azure-dev.yml](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml/badge.svg)](https://github.com/FBoucher/NoteBookmark/actions/workflows/azure-dev.yml)


I use this project mostly everyday. I build it to help me collecting my thoughts about articles, and blob posts I read during the week and then aggregate them in a #ReadingNotes blog post. You can find those post on my blog [here](https://frankysnotes.com).

Expand All @@ -19,57 +20,24 @@ NoteBookmark is composed of three main sections:
- Fork this repository to your account.
- Clone the repository to your local machine.

### Create the Azure Storage

Curretly the project assumed you already have an Azure Storage account, therefor its creation is exclude of the deployment. Let's create one now and retreive it's ConnectionString using a Azure CLI comnand (you can also use the Azure Portal is you prefer).

Here in Bash:

```bash
resourceGroupName="notebookmark-dev"
location="eastus"
storageAccountName="notedata"

az group create --name $resourceGroupName --location $location

az storage account create --name $storageAccountName --resource-group $resourceGroupName --location $location --sku Standard_LRS

az storage account show-connection-string --name $storageAccountName --resource-group $resourceGroupName
```

and PowerShell:

```powershell
$resourceGroupName = "notebookmark-dev"
$location = "eastus"
$storageAccountName = "notedata"

az group create --name $resourceGroupName --location $location

az storage account create --name $storageAccountName --resource-group $resourceGroupName --location $location --sku Standard_LRS

az storage account show-connection-string --name $storageAccountName --resource-group $resourceGroupName
```

Save this connection string, you will need it later.

### Deploy the soluiton
### Deploy the solution (5 mins)

Using Azure Developer CLI let's initialize your environment. In a terminal, at the root of the project, run the following command. When ask give it a name (ex: NoteBookmark-dev).

```bash
azd init
```

Now let's deploy the solution. Run the following command in the terminal. You will have to select your Azure subscription where you want to deploy the solution, a location (use the same as for the storage creation earlier), and paste the connection string you saved earlier when asked for the 'data_storage_connstr'.
Now let's deploy the solution. Run the following command in the terminal. You will have to select your Azure subscription where you want to deploy the solution, and a location (ex: eastus).

```bash
azd up
```

It should take around five minutes to deploy the solution. Once it's done, you will see the URL for **Deploying service blazor-app**.

### Secure the App
### Secure the App in a few clicks

The app is now deployed, but it's not secure. Navigate to the Azure Portal, and find the Resource Group you just deployed (ex: rg-notebookmark-dev). In this resource group, open the Container App **Container App**. From the left menu, select **Authentication** and click the **Add identity provider**.

Expand Down