Skip to content

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.json

Important files

FilePurpose
src/main.jsRegisters pages, actions, state, and plugins.
src/styles/app.cssApp-level styling.
index.htmlBrowser entry file.
zz.config.jsonBuild, routing, output, and deploy preferences.
public/Static assets copied into the final build.

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.

Released under the MIT License.