Project Structure
Generated ZhinNX projects are intentionally small. The framework should help you ship, not force you into a large folder hierarchy.
txt
my-app/
├─ public/
├─ src/
│ ├─ main.js
│ └─ styles/
│ └─ app.css
├─ index.html
├─ package.json
└─ zz.config.jsonImportant files
| File | Purpose |
|---|---|
src/main.js | Registers pages, actions, state, and plugins. |
src/styles/app.css | App-level styling. |
index.html | Browser entry file. |
zz.config.json | Build, routing, output, and deploy preferences. |
public/ | Static assets copied into the final build. |
Recommended growth path
When the app grows, add folders by need instead of by habit.
txt
src/
├─ components/
├─ pages/
├─ services/
├─ stores/
└─ styles/Keep components as plain functions when possible. Move code only when the file is becoming hard to read.