Terraform-On-Azure-Workshop / terraform-azure-hashiconf2020

Terraform on Azure coding challenge for HashiConf Digital 2020
MIT License
13 stars 13 forks source link

[CHALLENGE SUBMISSION] 2 #28

Closed matsest closed 4 years ago

matsest commented 4 years ago

Please provide the following information for your submission:

What is your name? (First, Last)

Mats, Estensen

Where is your GitHub Repo ?(With your challenge solution)

https://github.com/matsest/AzureEats-Website/tree/challenge-02

What Challenge is this for? (Challenge number between 1 and 5)

2

Live website: https://mats-azureeats-website-with-db.azurewebsites.net/

(Optional) Anything else we should know? e.g., language used, location, blog post?

matsest commented 4 years ago

Also: did not get the photo upload to work on the published app. Is this something that should work? @ntrogh ~If so, I guess my connection string for the sql server is off..~ I guess this relies on the (to be deployed?) backend if I understand the doc correctly. No worries.

salem84 commented 4 years ago

Hi @matsest, I have the same problem; I have enabled Application Insights and I obtain this error on

POST /products/imageclassifier

The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request.
Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.

Do you have a similar issue?

matsest commented 4 years ago

@salem84 I haven't checked app insights, but as far as I can see from the docs here this demands the application backend to be set up (deployed). Guess this will come as one of the coming days challenges.

I checked the database contents in Azure, and it's functional (as the products are placed there).

salem84 commented 4 years ago

My bad! I have missed /api/v1 on app settings! We will check next days for coming challenges :-)

ntrogh commented 4 years ago

Thanks for participating in the #TerraformOnAzure coding challenges! We have attached your very special Astronaut Badger background, for you to use in all your upcoming video calls!

And to recognize you for your learning, you can collect your digital Azure Heroes badge on your mobile (you may need to install the Enjin wallet to collect it). Make sure to collect it today! https://beam.enjin.io/claim/d32599695c8c28cfc24820492080fac0

Keep on learning and sharing!

Greetings from the #TerraformOnAzure team, Suzanne, Floor, Erik & Nick

TerraformOnAzure-Background-Final