#rust

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • Here's an overview of the TAMASHA stack that I used to build a slack/campfire clone called "SpeakWith".
    Ta - Tailwind
    M - Minijinja
    A - Alpine
    S -Sqlx
    H - Htmx
    A - Axum
    You can check out the repository and build and run it yourself!
    github.com/gam...
  • Věda a technologie

Komentáře • 41

  • @tombanksme
    @tombanksme Před 6 měsíci +6

    Hey. Amazing video; I'm glad to see others enjoying rust as much as I am.
    I'm working on a Rust integration for the vite build tool which might help with your tailwind stuff. Im mostly focusing on a stack of Axum + Askama. Hoping to release it in the next few weeks. 🤞

    • @_sandeepnambiar
      @_sandeepnambiar  Před 6 měsíci

      I'm looking forward to it. Having less external deps is a big goal for me.

    • @thomasfrancis3766
      @thomasfrancis3766 Před 3 dny

      I built mine with Axum and Askama as well. Askama seemed more well-developed at the time.

  • @m___pryor
    @m___pryor Před 4 měsíci +1

    The just trick is sweet. Nice build and stack 🙌

  • @omkarmahajan9918
    @omkarmahajan9918 Před 6 měsíci +3

    Hey Sandip, have you heard about dioxus? It's a rust framework which plans to Target every single platform. From desktop, web to smart watches using a single rust app codebase. It's written in rust. I am really excited about it!

  • @alexhammi6898
    @alexhammi6898 Před 6 měsíci +3

    Hey,
    Very nice work there, always love to see rust and htmx.
    This sounds a lot like a matrix chat alternative to me, maybe take a look at that

    • @_sandeepnambiar
      @_sandeepnambiar  Před 6 měsíci

      Hm. I hadn't thought in that direction. If i pull out the chat backend, then maybe it can become more like matrix.

  • @indierusty
    @indierusty Před 7 měsíci +2

    Your projects are unique like adventures. This inspire me to make my own.

    • @_sandeepnambiar
      @_sandeepnambiar  Před 7 měsíci +1

      Thanks! Would love to see them when you you do so!

  • @houstonbova3136
    @houstonbova3136 Před 6 měsíci

    Great video! Great stack!
    I’m definitely going to toy around with this. I’ve been enjoying working in Leptos a bit here and there but this seems a lot more clear cut for most web dev things I would be doing.
    The just file is nice extra touch!

  • @ajinkyax
    @ajinkyax Před 6 měsíci +2

    Good job Sandeep, do you think JS devs can see a future in Rust ?

    • @_sandeepnambiar
      @_sandeepnambiar  Před 6 měsíci +1

      Yes for sure! i think it takes a little while to get over the initial learning curve, but after that you feel like writing everything in rust

    • @ajinkyax
      @ajinkyax Před 6 měsíci

      @@_sandeepnambiar thanks I have decided to learn Rust by making a game, thanks to you

    • @_sandeepnambiar
      @_sandeepnambiar  Před 6 měsíci

      Thats great! I am a game dev during the day! Would love to play what you put out! @@ajinkyax

  • @himanshutripathi7441
    @himanshutripathi7441 Před 6 měsíci

    Tamasha, Accha nam hai bhai.
    keep it up .
    Thank you for video

  • @mbvlabs
    @mbvlabs Před 6 měsíci

    Good video! You're making me want to start working on my starter template project in Rust that uses a very similar stack, just askama instead of minijina

    • @_sandeepnambiar
      @_sandeepnambiar  Před 6 měsíci

      Go for it! The only problem I had with it was the pain of compilation times with Askama.

    • @mbvlabs
      @mbvlabs Před 6 měsíci

      @@_sandeepnambiar Yeah, that's the reason I switched back to Go. Tera has very fast compilation times, but you don't get the comprehensive checks during development as you do with Askama.

  • @evccyr
    @evccyr Před 7 měsíci +2

    Great video btw... I'm also building a website with htmx, turso, Tera, and axum. I am still confused between the templating frameworks. I'm missing the render_block function from minijinja in tera.

  • @irlshrek
    @irlshrek Před 3 měsíci

    dude, great video!

  • @BillyMosis
    @BillyMosis Před 7 měsíci +1

    I'm using askama instead of mini Jinja. It also compile check too like sqlx.
    The bad news is when returning partial HTML I need to create two struct lol.

  • @SpeedCodes-oc7ed
    @SpeedCodes-oc7ed Před 6 měsíci +1

    do you think yew could be a solution for your case? i mean to use yew for frontend with axum or activx for backend?

    • @_sandeepnambiar
      @_sandeepnambiar  Před 6 měsíci +1

      The idea behind using Htmx and hateos is that the server returns UI rendered with state. Yew (and others like leptos) are mainly front-end frameworks where they fetch once to render UI and then fetch state after. While there are ssr things in them, I'm aiming to avoid magic things, going for simple "return this html" instead.

    • @SpeedCodes-oc7ed
      @SpeedCodes-oc7ed Před 6 měsíci

      @@_sandeepnambiar thanks for your response, really i love the idea of htmx, tailwind and alpine... but my question is, how could it works as microservice, when you just return the rendered UI instead of the data? or do you prefer to use alpine in that case?

    • @_sandeepnambiar
      @_sandeepnambiar  Před 6 měsíci +1

      @@SpeedCodes-oc7ed I see no problem in splitting up the UI rendering over multiple servers and the database as well. Returning html is for the final layer that is served to the users. Services can talk to each other in any protocol. Also, the trick here is to split what is returned from what is processed. You can return the serialised object as json or as rendered html based on whether the request wanted html or JSON.

  • @metaphoricallyalive8109
    @metaphoricallyalive8109 Před 4 měsíci

    This is so hawt. I'm in love.

  • @evccyr
    @evccyr Před 7 měsíci +1

    What database are you using? Like what cloud platform?

    • @larsthomasdenstad9082
      @larsthomasdenstad9082 Před 7 měsíci

      This uses SQLite, he mentions it in the video.

    • @_sandeepnambiar
      @_sandeepnambiar  Před 7 měsíci

      This project uses sqlite so.. the db file lives locally. But I think sqlx is compatible with postgres so there are bunch of the cloud offers for that. This project is built around you owning everything, including your data. So it's all local.

  • @elitiums9320
    @elitiums9320 Před 4 měsíci

    Why didn't you use tauri?

    • @_sandeepnambiar
      @_sandeepnambiar  Před 4 měsíci

      I assume Tauri is used for making a desktop application and if i was making a desktop application, I would definitely recommend Tauri as well! Cheers!

  • @argha-01
    @argha-01 Před 6 měsíci

    best stack ever (just need a solutilon for css , tailwind is too much copypaste )🤣

  • @evccyr
    @evccyr Před 7 měsíci +1

    Do you know where I can deploy an axum app for free with a custom domain name?

    • @_sandeepnambiar
      @_sandeepnambiar  Před 7 měsíci

      I think shuttle.rs is a great option for rust projects.

    • @evccyr
      @evccyr Před 7 měsíci

      @@_sandeepnambiar yea, but you can't hook up a custom domain without a subscription

    • @_sandeepnambiar
      @_sandeepnambiar  Před 7 měsíci

      @@evccyr hmm true. I think there are a few crates that would do let's encrypt certificates for you. Then you can use that and follow the examples in the Axum repo to get TLS .

  • @funky_hedgehog
    @funky_hedgehog Před 3 měsíci

    It can be easier with picocss