Coder Social home page Coder Social logo

rstropek / starshiptraveler Goto Github PK

View Code? Open in Web Editor NEW
34.0 6.0 14.0 4.82 MB

Demo for conference talks and workshops about Blazor

Home Page: https://starshipclient.azurewebsites.net

License: MIT License

HTML 38.03% C# 54.16% CSS 5.62% Dockerfile 2.19%
blazor blazor-webassembly blazor-server asp-net-core csharp razor

starshiptraveler's Introduction

api client server

Starship Traveler Blazor Demo

Screenshot

I created this demo app for the DevOne 2019 conference. It has been updated for my Blazor sessions at Techorama Belgium 2019, .NET Day Switzerland, and the International JavaScript Conferences in London and Munich, Webinar for M&F Engineering, Switzerland, Wasm workshop for University of Eduction Upper Austria. It showcases the capabilities of the ASP.NET Core Blazor framework.

Note that this sample will not be continuously maintained. I will update it every now and then whenever I use it in workshops and/or conference talks. If you update and/or extend it, feel free to send me a pull request.

Demo Content

  • Fundamentals of programming with Blazor in a non-trivial app
  • Same app in Blazor Webassembly and Server-side Blazor
  • Encapsulation of components in a class library that can be used on client and server
  • Code sharing between client and server
  • Use of "legacy" .NET components (.NET Framework library) in Blazor WASM and Server-side Blazor
  • Debugging
  • Release deployments using container technology
  • CI/CD with GitHub Actions (deployment to Azure App Service)

Run the Full Demo

  • Install Blazor by installing Visual Studio Preview.

  • Clone the repository.

  • Open the solution StarshipTraveler.sln and run it.

Replay Demo?

Do you want to try the demo yourself? Here is what you do:

  • Install Blazor by installing Visual Studio Preview.

  • Clone the repository.

  • Start the API project because the Blazor frontend consumes this Web API. Note that you should run the Web API as a console app or in a Docker container. Don't start the API in IIS as this can lead to CORS issues.

  • Open the solution in the Start folder.

  • Follow the steps mentioned in storyboard.md. You will find the files referenced there in the Assets folder.

Docker

This repository contains Dockerfiles for all three projects:

  • Api.Dockerfile
  • Client.Dockerfile (WASM Client)
  • Server.Dockerfile (Serverside Blazor)

GitHub Actions build the Dockerfiles and publish the resulting images to Docker hub:

Note that the Dockerfiles build release versions of the apps. Therefore, you can use the resulting images to demonstrate WASM differences between debug and release builds.

Azure

Currently, the Docker images are deployed in Azure. Note that I do not always keep those deployments active. I sometimes turn them off to save costs when not doing presentations.

Recording

Rainer on Stage

starshiptraveler's People

Contributors

davidxw avatar rstropek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

starshiptraveler's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.