Setup Tauri with Next.js and Rust - Tutorial

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024

Комментарии • 30

  • @orcharddweller
    @orcharddweller  Год назад +9

    Turns out that with the release of create-tauri-app 3.0.0 you can no longer choose Next.js as a javascript framework for tauri.
    You can still choose React and have a fairly similar experience, or go through a more manual process of setting up Next.js (Next.js routing is worth it).
    Tutorial for manual setup of Next.js
    tauri.app/v1/guides/getting-started/setup/next-js
    While there is a way to use the old create-tauri-app with:
    cargo install create-tauri-app --version 2.8.0
    cargo create-tauri-app
    Be careful as it might become obsolete at any point.

  • @nozomi_ch
    @nozomi_ch Год назад +5

    It was fun! Looking forward to the next Tauri lesson again!

  • @Dev-Siri
    @Dev-Siri Год назад +2

    Server side rendering a desktop app sounds cool.

  • @zouna007
    @zouna007 Год назад +3

    Well explained! Can't wait for the next tutorial!

  • @Luis-gb1ph
    @Luis-gb1ph Год назад +1

    Hey man really liked the content. Well explained, didn't rush. Good job 👍

  • @manishbarik2267
    @manishbarik2267 Год назад

    Subscribed for Tauri

  • @MrAtomUniverse
    @MrAtomUniverse Год назад +1

    218 Subscribers! Keep it up :D

  • @udittlamba
    @udittlamba Год назад +1

    great video

  • @Takatou__Yogiri
    @Takatou__Yogiri Месяц назад

    i do not use ts. is there no way to use next.js with ts in tauri? with js it did not install next.js by default. it installed just react.

  • @MikeNugget
    @MikeNugget Год назад +1

    Nice!

  • @nowayuwont9371
    @nowayuwont9371 Год назад +1

    ty

  • @ahmedabd2259
    @ahmedabd2259 Год назад +2

    You need to make more videos

  • @optimbro
    @optimbro Год назад +4

    Bro, make all things Tauri playlist, but without using rust :D

    • @orcharddweller
      @orcharddweller  Год назад +4

      But Rust is so much fun! How about showing both ways of doing things? 😎

  • @muffafaYoutube
    @muffafaYoutube Год назад

    i love it

  • @gramajocristianismael282
    @gramajocristianismael282 Год назад +1

    Have two questions, why do you use Nextjs instead React if is just a desktop app? and you can make a tutorial making a simple app with sqlite + tauri? Great video by the way!

    • @orcharddweller
      @orcharddweller  Год назад +1

      Thanks!
      React is fine as well, but Next.js has a lot of features out of the box like e.g. routing, especially with the app dir layouts.
      I’m preparing a bunch of python content rn, but I’ll have a look into sql + tauri :)

  • @das_daily_
    @das_daily_ 5 месяцев назад

    hey guys does anybody knows how can we make the nextjs14 app routers work with tauri?

  • @Imaginativeone_DF
    @Imaginativeone_DF 6 месяцев назад

    The nextjs template appears to have been removed.

  • @flyboi86
    @flyboi86 Год назад

    When I follow the steps to create a project by typing cargo create-tauri-app, I only get react, angular, svelte, solid etc. on the options and no nextjs or ts options. The tauri docs also seem to show nextjs steps by first creating a nextjs app with npm/yarn etc and then linking it with tauri. is this the new way of doing it or am I missing something? Thanks in advance.

    • @orcharddweller
      @orcharddweller  Год назад

      Are you sure you have the most recent version of create-tauri-app?
      I always run both of those commands, not just the second one:
      cargo install create-tauri-app
      cargo create-tauri-app
      Tauri docs recommend using create-tauri-app here (in the green box):
      tauri.app/v1/guides/getting-started/setup/next-js

    • @flyboi86
      @flyboi86 Год назад +1

      ​@@orcharddweller I did have the most recent version (v3.0.2). Just installed everything last night and tried it. I did do both of those commands, one to install cta and the one to init the app however during the init phase I only get vanilla, vue, react, svelte, solid etc. (just tried it again and same thing even though their github says it supports nextts js etc). Weird. However I followed the other method as its simple enough to do so and was able to get nextjs with typscript setup with tauri src. Thanks for the video, it was helpful.

    • @orcharddweller
      @orcharddweller  Год назад +1

      ​@@flyboi86 Hey, I've completely missed the update to create-tauri-app, sadly, Next.js is no longer available there, sorry for confusion :(
      I've pinned a comment with some suggestions, but you shouldn't need it as you've figured it out anyways 😎

  • @shanerigsby9030
    @shanerigsby9030 Год назад +1

    Links in the description?

    • @orcharddweller
      @orcharddweller  Год назад +2

      Oh god, I did forget about the links in the description 🥴.
      They should be there now!

  • @elvispalace
    @elvispalace Год назад

    wtf