# Web apps

> NodeWeb builds a web app with Vite and tests it with Vitest; plinto run serves it while you work.

**NodeWeb type-checks your TypeScript, builds the app with Vite and tests it with Vitest. `plinto run` serves it while you work.**

Build system: `NodeWeb`
Start one: `plinto create node-web HelloWeb`
Ships as: the built site, a folder of static files

## The project {#project}

`index.html` sits next to `plinto.conf`, the code in `src/` and static files in `public/`. Your own `vite.config.ts` is used when there is one.

```conf file=plinto.conf
{
  name = HelloWeb
  version = 1.0
  build = NodeWeb

  build-dependencies: {
    NodeWeb = 1.0
    Node = 24
    TypeScript = 7
    Vite = 8
  }
  dependencies: {
    HelloTsLib = 1.0     # a TypeScript library, shared with a service
  }
  test-dependencies: {
    Vitest = 5
  }
}
```

## Run it {#run}

```sh
$ plinto run
```

starts Vite's dev server, which reloads the page as you change the code.

## What it releases {#releases}

`vite build` writes the site to `build/web`, and the release is that folder: HelloWeb-1.0.tar.gz.

- [TypeScript and Node](node.md): libraries the app and a service share
- [Packages](../concepts/packages.md#imports): npm packages
- [Projects](../concepts/projects.md): one project per package
