Hey there! I’m starting my journey to the learning of Rust. I have been coding only with Python for 6 years now and last year, I had to code in JavaScript using VueJS for my job (I never workedeon frontend).

Now, I have a personal project idea which I’d like to create. I could do it in Python but I want to learn Rust. I’ve looked up on the Internet but may be some answers are too old or someone here can point me to something I haven’t seen yet.

What do you recommand for webdev? I guess I need to code the back in Rust and use a JavaScript framework for the front. My backend will be for a REST API (my app will need to manage users and organisations).

Bonus question if you can recommend a BDD framework. I think there is something named Cucumber. Is it good?

Thanks a lot ♥️🦀

  • asudox@discuss.tchncs.de
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    22 days ago

    I mostly use Axum (backend) with Leptos (frontend with WASM). If possible, I’d always want to use one single language for everything.

  • uint32@discuss.tchncs.de
    link
    fedilink
    arrow-up
    8
    ·
    22 days ago

    For backend development Axum seems to be the best choice. If you want to go full stack rust, have a look at dioxus. Seems the most polished options available atm

  • orclev@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    22 days ago

    Actix-Web was one of the original web frameworks and is still very popular and well supported. That said, it’s in the process of being replaced by Axum which is by the people who created Tokio (the async framework underlying both Actix-Web and Axum). Axum is fairly well supported now, although maybe not quite as complete as Actix-Web.

  • TehPers@beehaw.org
    link
    fedilink
    English
    arrow-up
    3
    ·
    22 days ago

    For frontend, there are cool Rust frameworks like Yew, but if it’s a “real” project then just go with a standard JS framework like Next.js instead.

    For backend, Next.js (and many others) can also do backend, but if you want to use Rust, then I recommend axum. It’s pretty much my goto Rust backend library.

  • T (they/she)@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    22 days ago

    I am currently learning rust and decided to use Actix Web for my project, mostly because it is the framework being used by Lemmy.

    You can use Rust on both backend and frontend if you feel like it, everything is possible with WebAssembly.