#rust

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 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...

ความคิดเห็น • 40

  • @tombanksme
    @tombanksme 6 หลายเดือนก่อน +5

    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  6 หลายเดือนก่อน

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

  • @omkarmahajan9918
    @omkarmahajan9918 6 หลายเดือนก่อน +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!

    • @_sandeepnambiar
      @_sandeepnambiar  6 หลายเดือนก่อน

      Yep yep. dioxus is very cool!

  • @m___pryor
    @m___pryor 3 หลายเดือนก่อน +1

    The just trick is sweet. Nice build and stack 🙌

  • @alexhammi6898
    @alexhammi6898 6 หลายเดือนก่อน +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  6 หลายเดือนก่อน

      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 6 หลายเดือนก่อน +2

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

    • @_sandeepnambiar
      @_sandeepnambiar  6 หลายเดือนก่อน +1

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

  • @houstonbova3136
    @houstonbova3136 5 หลายเดือนก่อน

    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 6 หลายเดือนก่อน +2

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

    • @_sandeepnambiar
      @_sandeepnambiar  6 หลายเดือนก่อน +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 6 หลายเดือนก่อน

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

    • @_sandeepnambiar
      @_sandeepnambiar  6 หลายเดือนก่อน

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

  • @himanshutripathi7441
    @himanshutripathi7441 6 หลายเดือนก่อน

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

  • @mbvlabs
    @mbvlabs 6 หลายเดือนก่อน

    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  6 หลายเดือนก่อน

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

    • @mbvlabs
      @mbvlabs 6 หลายเดือนก่อน

      @@_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.

  • @SpeedCodes-oc7ed
    @SpeedCodes-oc7ed 6 หลายเดือนก่อน +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  6 หลายเดือนก่อน +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 6 หลายเดือนก่อน

      @@_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  6 หลายเดือนก่อน +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.

  • @irlshrek
    @irlshrek 3 หลายเดือนก่อน

    dude, great video!

  • @evccyr
    @evccyr 6 หลายเดือนก่อน +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.

  • @BillyMosis
    @BillyMosis 6 หลายเดือนก่อน +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.

  • @metaphoricallyalive8109
    @metaphoricallyalive8109 4 หลายเดือนก่อน

    This is so hawt. I'm in love.

  • @elitiums9320
    @elitiums9320 3 หลายเดือนก่อน

    Why didn't you use tauri?

    • @_sandeepnambiar
      @_sandeepnambiar  3 หลายเดือนก่อน

      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!

  • @evccyr
    @evccyr 6 หลายเดือนก่อน +1

    What database are you using? Like what cloud platform?

    • @larsthomasdenstad9082
      @larsthomasdenstad9082 6 หลายเดือนก่อน

      This uses SQLite, he mentions it in the video.

    • @_sandeepnambiar
      @_sandeepnambiar  6 หลายเดือนก่อน

      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.

  • @evccyr
    @evccyr 6 หลายเดือนก่อน +1

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

    • @_sandeepnambiar
      @_sandeepnambiar  6 หลายเดือนก่อน

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

    • @evccyr
      @evccyr 6 หลายเดือนก่อน

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

    • @_sandeepnambiar
      @_sandeepnambiar  6 หลายเดือนก่อน

      @@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 .

  • @argha-01
    @argha-01 6 หลายเดือนก่อน

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

  • @funky_hedgehog
    @funky_hedgehog 3 หลายเดือนก่อน

    It can be easier with picocss