express-ts-server-generator

1.0.3 • Public • Published

express-ts-server-generator

Create Express TypeScript Server is a command-line tool that allows you to quickly generate a new Express.js server project with TypeScript support.

Installation

You can install the express-ts-server-generator package globally using npm:

npm install -g express-ts-server-generator

Alternatively, you can use npx to run the package without installing it globally:

npx express-ts-server-generator new <project-name>

Replace <project-name> with the desired name for your project.

Usage

To create a new Express TypeScript server project, run the following command:

express-ts-server-generator new <project-name>

After running the above command, the tool will clone a base repository from GitHub and initialize it for clean use. It will set up an Express server with TypeScript configuration and install necessary dependencies.

Once the project is initialized successfully, navigate to the project directory, create the .env file and .ev.test file then start the server:

cd <project-name>

To start the server in production mode

pnpm start

To start the server in debug mode

pnpm start:dev

To run the test suite

pnpm test

This will start the Express server, and you can access it at http://localhost:3000.

Note

  • This package only supports the use of pnpm as the package manager.

License

This project is licensed under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i express-ts-server-generator

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

5.83 kB

Total Files

4

Last publish

Collaborators

  • vishnucprasad