https://github.com/johannschopplich/nitro-starter
🛎️ Best practice Nitro Starter with full Vitest coverage
https://github.com/johannschopplich/nitro-starter
nitro nitro-template unjs
Last synced: 11 months ago
JSON representation
🛎️ Best practice Nitro Starter with full Vitest coverage
- Host: GitHub
- URL: https://github.com/johannschopplich/nitro-starter
- Owner: johannschopplich
- License: mit
- Archived: true
- Created: 2024-04-04T19:55:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-20T17:03:52.000Z (over 1 year ago)
- Last Synced: 2025-08-17T03:56:47.490Z (11 months ago)
- Topics: nitro, nitro-template, unjs
- Language: TypeScript
- Homepage:
- Size: 1.77 MB
- Stars: 25
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nitro Starter
Starter kit for [⚗️ Nitro](https://nitro.unjs.io) – a powerful tool chain and a runtime framework from the [UnJS](https://github.com/unjs) ecosystem to build and deploy any JavaScript server, anywhere.
It is highly recommended reading the [Nitro documentation](https://nitro.unjs.io) when working with this template.
## Key Features
- 🎒 [Demo routes](./server/routes/api/) and [route rule examples](./server/nitro.config.ts)
- 🥖 [Nano JSX](https://nanojsx.io) SSR routes
- 🤠 [CORS handler middleware](./server/middleware/cors.ts)
- ✅ Full test coverage powered by [Nitro Test Utils](https://github.com/johannschopplich/nitro-test-utils)
- 🦺 ESLint & Prettier defaults
## Usage
### Prerequisites
1. Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
2. Install dependencies using `pnpm install`
### Development
1. Start the development server using `pnpm run dev`
2. Visit [localhost:3000](http://localhost:3000/)
### Testing
Nitro tests are located in the [`test`](./test) directory. When running tests, a Nitro instance is created and launched for all test suites. This can be configured based on your use case.
Run the Nitro tests using `pnpm test`.
## License
[MIT](./LICENSE) License © 2022-PRESENT [Johann Schopplich](https://github.com/johannschopplich)