Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damassi/node-starter-2024
Node.js starter app, 2024 edition
https://github.com/damassi/node-starter-2024
fastify nodejs openapi react typescript vite
Last synced: about 1 month ago
JSON representation
Node.js starter app, 2024 edition
- Host: GitHub
- URL: https://github.com/damassi/node-starter-2024
- Owner: damassi
- License: mit
- Created: 2024-08-13T19:10:57.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T22:14:54.000Z (3 months ago)
- Last Synced: 2024-09-28T11:22:18.318Z (about 2 months ago)
- Topics: fastify, nodejs, openapi, react, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 174 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node.js Starter App (2024)
Provides a quick-start Node.js app with some common default tooling:
- [Vite](https://vitejs.dev/): Frontend Tooling
- [Vitest](https://vitest.dev): Testing
- [TSX](https://tsx.is/): Run TypeScript everywhere, and reload code when things change
- [Fastify](https://fastify.dev/): Node HTTP server, with excellent support for typed APIs
- [Fastify-Swagger](https://github.com/fastify/fastify-swagger): Generate OpenAPI-compliant API definitions
- [OpenAPI-Fetch](https://openapi-ts.dev/openapi-fetch/): Connects your type-safe server API to the client for end-to-end support
- [Husky](https://github.com/typicode/husky)/[Lint-Staged](https://github.com/lint-staged/lint-staged): Git precommit hooks
- [@testing-library/react](https://testing-library.com/docs/react-testing-library)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)### Getting Started
Install all dependencies:
```bash
npm install
```Start the server:
```bash
npm startopen http://localhost:3000
```View API docs:
```bash
open http://localhost:3000/docs
```Regenerate OpenAPI Schema:
```bash
npm run generate-schema
```### All Commands
- `npm start`
- `npm test`
- `npm run generate-schema`
- `npm run type-check`
- `npm run lint`
- `npm run prettier````
```