Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
HTTP_404_NotFound ( xtremeownage@lemmyonline.com )  to C Sharp@programming.devEnglish · 3 years ago

Blazor client for Lemmy?

message-square
message-square
15
link
fedilink
15
message-square

Blazor client for Lemmy?

HTTP_404_NotFound ( xtremeownage@lemmyonline.com )  to C Sharp@programming.devEnglish · 3 years ago
message-square
15
link
fedilink

Just a random idea- but,

Would anyone be interested in having a .net based blazor front end for lemmy?

Sadly, there isn’t yet a c# nuget package, but, that wouldn’t be hard to fix.

https://join-lemmy.org/api/

The API itself, is pretty well documented.

And, building custom front-ends is encouraged as well.

https://join-lemmy.org/docs/en/contributors/04-api.html#creating-a-custom-frontend

alert-triangle
You must log in or # to comment.
  • HTTP_404_NotFound ( xtremeownage@lemmyonline.com ) OP
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 years ago

    Just, gonna add-

    If I end up building the front-end for this, is gonna end up looking like a bootstrap example website!!!

    • StudioLE ( StudioLE@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 years ago

      Give MudBlazor a try, I’ve found it surprisingly easy to develop half decent UIs that don’t feel too boilerplate without much customisation

      • x0y ( x0y@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        I’ve been using MudBlazor on my last few small projects. With the MAUI template, Blazor is quickly replacing WPF and MVVM hell for me.

  • Cynthia ( cyn@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    3 years ago

    Figuring out how to actually put a package on nuget, but I have fully implemented the API

    https://github.com/SlyCedix/dotNETLemmy/tree/main
    https://slycedix.github.io/dotNETLemmy/

    I intend to write a mobile app using Avalonia UI using it

    Do note, it’s mostly untested so there’s a good chance a handful of the datatypes won’t serialize or deserialize correctly, but that’s an easy fix once found

    edit: Uploaded to nuget, currently being validated

    https://www.nuget.org/packages/dotNETLemmy.API/0.0.1

    • HTTP_404_NotFound ( xtremeownage@lemmyonline.com ) OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Digging into this one now- does appear there is also Lemmy.Net.Client now too.

  • Baldr ( balder1993@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    deleted by creator

  • nibblebit ( nibblebit@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 years ago

    I think that would be great! I started working on a Azure Functions bot and started a DI dotnet client that I put on nuget https://github.com/ydinkov/Lemmy.Net

    It’s super wip right now, but Ill be adding more models, tests and error handling.

    • crystelium ( crystelium@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 years ago

      Just out of interest, why not use refit for something like this? You could get a basic client going much faster - unless there’s some specific behaviour you want for the client (which would require painful customisation with refit).

      I’ve come to be quite a fan of refit recently purely for how quick you can get a basic, working client

      • nibblebit ( nibblebit@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 years ago

        I like refit too! It’s super nice, but very quickly i realised the API does some weird undocumented stuff and isn’t very consistently implemented. I feel more comfortable doing the boilerplate my myself (chatgpt helps) while i figure out the funk.

        • crystelium ( crystelium@programming.dev ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 years ago

          Ah, that’s fair - haven’t encountered anything weird with it yet. I can imagine with chatgpt it’s become much easier though - I need to start giving AI tools a try. Do you have a particular set up for using chatgpt with rider or anything?

          • nibblebit ( nibblebit@programming.dev ) 
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 years ago

            No setup at all, just strip-mine the sourcecode for the existing TS client, have it generate curl requests. Run the curls, ask it to create POCOs for the results, and adjust.

            @pwshguy@programming.dev wrote a pwsh module for lemmy and can attest to the troubles =D

  • tcpaddock ( tcpaddock@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    I’ve been enjoying MudBlazor, Fluxor, and vertical slice design. I’d happily start or contribute to a MAUI frontend if someone built an API client.

  • canpolat ( canpolat@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 years ago

    That’s a good idea. I would like to experiment with some ideas where one could have an RSS reader together with a lemmy client. But the ideas are too raw and I’m not yet sure if it’s feasible.

    Maybe I misunderstood, but it sounds like you are looking for “team mates” to develop a lemmy client. Or was it just a suggestion to others?

    • HTTP_404_NotFound ( xtremeownage@lemmyonline.com ) OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 years ago

      Maybe I misunderstood, but it sounds like you are looking for “team mates” to develop a lemmy client. Or was it just a suggestion to others?

      Well, honestly- I am a backend person. I can build a functional UI, it’s just not pretty. (Its going to be very vanilla bootstrap-ish)

      As well, in terms of unit testing, I have done tons of it for back-end, but, very little for front-end.

      So- assuming I dedicated the time to start building libraries to interact with lemmy, I’d need some help on the front end, at least, for a product that would receive use outside of my homelab.

      • canpolat ( canpolat@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 years ago

        That makes sense. Same here (backend dev). Good luck with the project. Keep us posted! Maybe it will attract some designers over time.

C Sharp@programming.dev

csharp@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !csharp@programming.dev

A community about the C# programming language

Getting started

  • C# @ Wikipedia
  • A Tour of the C# Language
  • Learn C#

Useful resources

  • C# documentation
  • C# Language Reference
  • C# Programming Guide
  • C# Coding Conventions
  • .NET Framework Reference Source Code

IDEs and code editors

  • Visual Studio (Windows/Mac)
  • Rider (Windows/Mac/Linux)
  • Visual Studio Code (Windows/Mac/Linux)

Tools

  • Decompilers: ILSpy, dotPeek
  • Scratchpad: LINQPad
  • Online playground and IL viewer: SharpLab

Rules

  • Rule 1: Follow Lemmy rules
  • Rule 2: Be excellent to each other, no hostility towards users for any reason
  • Rule 3: No spam of tools/companies/advertisements

Related communities

  • c/dotnet
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3 users / day
  • 3 users / week
  • 15 users / month
  • 49 users / 6 months
  • 18 local subscribers
  • 1.81K subscribers
  • 253 Posts
  • 241 Comments
  • Modlog
  • mods:
  • Ategon ( Ategon@programming.dev ) 
  • nibblebit ( nibblebit@programming.dev ) 
  • Spyros ( Spyros@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code