1.0.9 • Published 5 years ago

@zhouhao27/create-express v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Create Express

A cli to create a very simple Node server with Express and TypeScript

Installation

npm i -g @zhouhao27@create-express

Usage

  create-express <project-name> [options]
    
  options:
  -h, --help Help
  -v, --version Show version

Steps to create an Node server with Express and TypeScript

  1. Add .gitignore
  2. README.md
  3. Create project
yarn init -y
  1. Add modules and add types

yarn add express 

ts-node-dev is similar to nodemon but it's working for TypeScript.

yarn add -D typescript @types/express ts-node-dev tsc
  1. Create tsconfig.json
  2. Add scripts in package.json
"scripts": {
  "ts-node-dev --respawn --transpileOnly ./src/server.ts"
}

References

TypeScript Express tutorial

How (and why) you should use Typescript with Node and Express.

1.0.9

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago