unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.88k stars 719 forks source link

Doc needed - Hosting Uno-Wasm applications on Amazon AWS #10768

Closed sasakrsmanovic closed 1 year ago

sasakrsmanovic commented 1 year ago

Hosting Uno Platform Wasm applications is possible on Amazon AWS, but documentation isn't provided. Can we please develop a document similar to those existing for Azure, Nginx and Apache to help community deploy to Azure AWS.

Similar pages Hosting a WebAssembly App

On which page?

What's wrong?

Any feedback?

DierkDroth commented 1 year ago

@sasakrsmanovic curious: what info for what AWS Setup would you need?

FYI My stuff runs on AWS S3, not sure if that's what's in your focus?!?

davidconoh commented 1 year ago

An Amazon S3 bucket would be fine. I don't know if added functionality would demand added CodeBuild or Amplify integration :)

MCAleckson commented 1 year ago

I'm trying to host an Uno WASM app (.Net7) on Amplify and can't get it to build or run. I had a .Net5 version running fine, but have long forgotten the magic words I used to make that work. So my team could really use a document describing the setup for UNO WASM on Amplify. Especially the build YML file contents.

jeromelaban commented 1 year ago

@MCAleckson if you have additional details on what happens when running on this type of hosting (error messages, browser debug logs or others) you can post some of it here, it will help to create the documentation. Thanks!

davidconoh commented 1 year ago

Hi @MCAleckson Here's a simple guide I followed to resolve Deploying Uno Platform WASM (.Net7) on Amazon Amplify: https://reads.davidconoh.me/hosting-uno-platform-wasm-on-aws-amplify/ Hope it helps :)

Reads — from Cyromaven
Hosting Uno Platform WASM on AWS Amplify
Uno Platform is an open-source environment for building multi-platform applications using C#, WinUI, and XAML from a single codebase.
MCAleckson commented 1 year ago

Thank you as always Jerome for your willingness to help!

David, thank you sir - it looks like I was specifying the build / release directory incorrectly from the base directory. Simple thing but tripped me up for sure. My Amplify build works perfectly now - thanks again!

davidconoh commented 1 year ago

Thank you MCAleckson, please do mark as answer to help others with the same issue :)

MCAleckson commented 1 year ago

I think Sasha's going to have to mark the question as answered since he asked it. But yes David I can vouch that your answer is indeed the answer to deploying on AWS Amplify.