-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solve for https #5
Comments
you do not like the storage / CDN solution? |
This wouldn't work if we're going to use Postgres. Not unless we did all the api calling in javascript. |
// Define the URL of the API
const apiUrl = 'https://api.example.com/data';
// Fetch data from the API
fetch(apiUrl)
.then(response => {
// Check if response is successful
if (!response.ok) {
throw new Error('Network response was not ok');
}
// Parse the JSON data
return response.json();
})
.then(data => {
// Data is now available for use
console.log(data);
// You can now manipulate or display the data as needed
})
.catch(error => {
// Handle any errors that occur during the fetch
console.error('There was a problem with the fetch operation:', error);
});
` |
not impossible, but ok |
https://www.perplexity.ai/search/what-is-the-nwCJG3AXRr.NIXvx95Aldw#0 To host an SSL website on Azure in the most cost-effective way, you have a few options:
In summary, the absolute cheapest way is to use the App Service Managed Certificates (Preview) feature with the Basic App Service Plan, which comes to around $13.64/month.[4] If the preview limitations don't work for you, purchasing a cheap third-party SSL certificate and using it on the Basic App Service Plan would be the next most cost-effective option.[2][3] Citations: |
If we can update the page to use javascript to fetch data from an API - either a function or WebApps API - would that be sustainable? Or do you want it be C# / Blazor front end? |
Sorry for the diversions. We have two Projects going on; the UI "Web" and
the backend API. Both projects are in GitHub.
To answer your question, I'd prefer vanilla Razor Pages for now. The true
task at hand is to use Postgres to feed the UI so I'm cranking out a API
which will be ready pretty soon and go live:
[image: image.png]
*Back End Steps:*
1. Stand up API using Sql db - WIP
1. add logging - wip
2. clean up program.cs
3. deploy
2. Build out middleware in API to use Postgres.
3. Switch when ready. Consumer of API doesn't know any different.
*Front End Steps:*
1. Wire up UI to call API as soon as it's ready.
2. (unrelated) solve for custom domain issue, what am I doing wrong?
***********************************************************
D. Shane Fowlkes
804.475.5378
***********************************************************
…On Fri, May 31, 2024 at 4:38 PM Russell Smith ***@***.***> wrote:
If we can update the page to use javascript to fetch data from an API -
either a function or WebApps API - would that be sustainable?
Or do you want it be C# / Blazor front end?
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZM774RXLNSPM5VNMNQUNTZFDNTVAVCNFSM6AAAAABINBHF4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSHE2DMNRYGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I agree that the app service plans are expensive. It looks like we can do react... https://learn.microsoft.com/en-us/azure/static-web-apps/ https://learn.microsoft.com/en-us/azure/static-web-apps/getting-started?tabs=react also Blazor! |
Yep. Postgres first. We can do whatever front-end we want and have fun.....
…On Fri, May 31, 2024, 5:46 PM Russell Smith ***@***.***> wrote:
I agree that the app service plans are expensive.
It looks like we can do react...
https://learn.microsoft.com/en-us/azure/static-web-apps/
https://learn.microsoft.com/en-us/azure/static-web-apps/getting-started?tabs=react
also Blazor!
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZM774WUKHKK2HOVAW5H23ZFDVT5AVCNFSM6AAAAABINBHF4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGAZDCMBZGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This is a real issue. We need to come up with a solution that allows us to run the web site at https w/o costing a fortune.
The text was updated successfully, but these errors were encountered: