# create-xinjs-app

> This is a single-page application project template using [XinJS](https://xinjs.net) and [Bun](https://bun.sh/). Run the following commands to get started.

Latest version **0.1.5** (published 2024-05-29) · 0 weekly downloads

## Install

```sh
npm install create-xinjs-app
pnpm add create-xinjs-app
yarn add create-xinjs-app
bun add create-xinjs-app
```

Provides the command `create`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2024-05-29 |
| First published | 2023-07-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 62.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | tonioloewald |

## Links

- npm: https://www.npmjs.com/package/create-xinjs-app
- npm.io page: https://npm.io/package/create-xinjs-app

## Recent versions

- 0.1.5 (latest) — 2024-05-29
- 0.1.4 — 2023-07-17
- 0.1.2 — 2023-07-17
- 0.1.1 — 2023-07-17
- 0.1.0 — 2023-07-17

## README

# XinJS Bun App

This is a single-page application project template using [XinJS](https://xinjs.net) and [Bun](https://bun.sh/). Run the following commands to get started.

```sh
npx create-xinjs-app your-app-name
cd your-app-name
bun install
```

Because this isn't a pure `bun` workflow, the `create.js` script doesn't run `bun install` for you.

```sh
bun run dev
```

Then open http://localhost:3000 with your browser to see the result.

This bundles `src/index.ts` and starts a development server that serves from the `public` and `build` directories. When the incoming request to `localhost:3000/` comes in, the following exchange occurs:

- The server returns `public/index.html`.
- The browser renders this HTML, which contains a `script` tags with `src="/index.js"`. The browser requests this file.
- The server checks for this file, first in `public` (no match) then in `build`. It finds `build/index.js` and returns it to the browser.
- This file renders the React component in `src/App.tsx` inside the `div#root` element. The app is now ready to accept user input.

Start building your app by editing `src/index.ts`.

---
_Source: https://npm.io/package/create-xinjs-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
