UNPKG

create-node-template

Version:

Create node.js/express boilerplate with one command

68 lines (47 loc) 1.54 kB
<div align="center" class="banner"> <img src="https://github.com/AndyOooh/create-node-template/assets/60953822/7d340216-a4a0-4aec-af00-d724e1e9c446" alt="React Hook Form Logo - React hook custom hook for form validation" /> </div> <!-- ### Description --> A CLI template generator for Node.js projects with **modern Typescript configuration**. ### Table of Contents - [Prerequisites](#prerequisites) - [How to use](#how-to-use) - [Features](#features) - [Node Basic](#node-basic) - [Express Basic](#express-basic) - [Express Advanced](#express-advanced) - [References](#references) ### Prerequisites - Node.js v 16.7.0 or higher (required by experimental `fs.cp` in node-basic). - [tsx](https://www.npmjs.com/package/tsx) global install recommended. ### How to use ``` npx create-node-template <project-name> --flags ``` Arguments and [flags](#flags) are optional. ## Features ### Node Basic - Import path aliases. - Eslint flat config file (requires VSCode setting). ### Express Basic - all features of node-basic - Express server setup ### Express Advanced - all features of express-basic - Express error handling - Express logging - Express monitoring ### Flags - -t, --template - -pm. --package-manager ## References - [Node.js](https://nodejs.org/en/) - [Express](https://expressjs.com/) - [Express error-handling](https://expressjs.com/en/guide/error-handling.html) - [ESLint](https://eslint.org/) - [@typescript-eslint Rules](https://eslint.org/docs/rules/) - Create Next App GH repo - NPM docs