@zhouhao27/create-express

1.0.9 • Public • Published

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.

Package Sidebar

Install

npm i @zhouhao27/create-express

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

6.44 kB

Total Files

11

Last publish

Collaborators

  • zhouhao27