[docs] Unprepared to answer tauri init questions
See original GitHub issueWhile reading your setup docs, I feel unprepared for the questions tauri init
asks.
I wanted to play around with Tauri so I went to set up a new app. Had smooth sailing until “Initialize Tauri in Your App” on https://tauri.studio/en/docs/development/integration
I’m told to run yarn tauri init
. Sounds sensible.
It asks Where are your web assets (HTML/CSS/JS) located, relative to the "<current dir>/src-tauri" folder that will be created?
Huh? I don’t have any assets. Why won’t it accept a blank answer? Fine, let’s try asdf
. Seems to be acceptable.
Then it asks What is the url of your dev server?
Again, huh? I don’t have a dev server. Tauri is supposed to create apps isn’t it? I suppose https://127.0.0.1
seems safe.
Then Do you want to install @tauri-apps/api?
No idea. What sort of an API are we talking about? This time I can just hit return. But what did I just do?
And it finishes.
It seems unlikely my guesses are correct. I’d appreciate it if the docs provided some guidance on how to answer these questions.

Issue Analytics
- State:
- Created 2 years ago
- Reactions:16
- Comments:13 (8 by maintainers)
I am new to tauri and “tauri init” process confusing for me too.
Where are your web assets (HTML/CSS/JS) located, relative to the "<current dir>/src-tauri" folder that will be created?:
there aren’t any… I have nothing yet. just created a tauri project. what should I do?What is the url of your dev server?:
should it include port or not? or includes http at the start? http://127.0.0.1, http://127.0.0.1:5000, etc…as a result unable to make it work yet. 😕
WAIT: figured it out from this talk.
I created a folder at top level named “dist” and put an “index.html” in it.
and;
# src-tauri/tauri.conf.json
I think you should ask for “path” instead of “url”. and “dev server” for what? thank you.
Tauri works with several frameworks. The thing that had been the most confusing to me is that the documentation to “create a tauri app” is essentially, create a new <whatever other framework app>, go into its directory, then run the steps. This didn’t become apparent to me until i stumbled upon a “tauri-react” package.
i.e.
then things make sense (except for the api question 😃
Autodetect would be nice, but it’s much more apparent what’s going on now that i know i can just create an empty app and “convert” it to a tauri app.