node-production-setup-typescript
v1.1.0
Published
Auto-setup TypeScript Node.js backend
Downloads
4
Readme
Production Package Setup (PPS)
PPS is a command-line tool that helps you quickly and easily set up a TypeScript Node.js backend project.
Features
- Rapid setup of a Node.js backend project with TypeScript
- Integration with the Express.js framework
- Code quality tools with ESLint and Prettier
- Pre-configured project structure
- Development and production scripts
- Easy customization
Installation
To install this package globally, use the following command:
npm install -g production-package-setup
Usage
To create a new project, run the following command:
pps new
This command will:
- Create a new project folder structure
- Generate necessary configuration files
- Install all required dependencies
- Give you the option to start the development server
Project Structure
PPS creates the following folder structure:
project_root/ │ ├── src/ │ ├── controllers/ │ ├── models/ │ ├── routes/ │ ├── middlewares/ │ ├── utils/ │ ├── config/ │ ├── index.ts │ └── app.ts │ ├── tests/ ├── dist/ ├── .env ├── .eslintrc.js ├── .prettierrc ├── tsconfig.json └── package.json
Scripts
npm run dev
: Start the development servernpm run build
: Compile TypeScript code to JavaScriptnpm start
: Run the app in productionnpm run lint
: Check code with ESLintnpm run format
: Format code with Prettier
Why Use PPS?
- Time-saving: Reduce hours of manual setup to minutes.
- Best Practices: Follow industry standards with pre-configured tools and structure.
- Consistency: Ensure a uniform structure and setup across all team projects.
- Customization: Easily modify configurations to suit your needs.
- Quick Start: Begin development immediately with minimal setup.