Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.02 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.02 KB

TypeScript Express Rest Api

Includes API Server utilities:

  • morgan
    • HTTP request logger middleware for node.js
  • helmet
    • Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!
  • dotenv
    • Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env

Development utilities:

  • tsc-watch
    • tsc-watch starts a TypeScript compiler with --watch parameter, with the ability to react to compilation status. tsc-watch was created to allow an easy dev process with TypeScript. Commonly used to restart a node server, similar to nodemon but for TypeScript.

Setup

npm install
or
yarn install

Dev

npm run dev
or
yarn dev

Build Only

npm run build
or
yarn build

Run Only

npm run start
or
yarn start

Licence

MIT