Setup Tauri with Next.js and Rust - Tutorial

Поділитися
Вставка
  • Опубліковано 11 гру 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.

  • @Dev-Siri
    @Dev-Siri Рік тому +3

    Server side rendering a desktop app sounds cool.

  • @nozomi_ch
    @nozomi_ch Рік тому +6

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

  • @zouna007
    @zouna007 Рік тому +3

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

  • @gibaogibaogibao
    @gibaogibaogibao Рік тому +1

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

  • @MrAtomUniverse
    @MrAtomUniverse Рік тому +1

    218 Subscribers! Keep it up :D

  • @manishbarik2267
    @manishbarik2267 Рік тому

    Subscribed for Tauri

  • @udittlamba
    @udittlamba Рік тому +1

    great video

  • @MikeNugget
    @MikeNugget Рік тому +1

    Nice!

  • @nowayuwont9371
    @nowayuwont9371 Рік тому +1

    ty

  • @muffafaYoutube
    @muffafaYoutube Рік тому

    i love it

  • @ahmedabd2259
    @ahmedabd2259 Рік тому +2

    You need to make more videos

  • @das_daily_
    @das_daily_ 8 місяців тому

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

  • @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 :)

  • @OptimBro
    @OptimBro Рік тому +4

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

    • @orcharddweller
      @orcharddweller  Рік тому +5

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

  • @Takatou__Yogiri
    @Takatou__Yogiri 4 місяці тому

    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.

  • @Imaginativeone_DF
    @Imaginativeone_DF 9 місяців тому

    The nextjs template appears to have been removed.

  • @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!

  • @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 😎

  • @elvispalace
    @elvispalace Рік тому

    wtf