Skip to content
Node.js app with Typescript boilerplate
JavaScript TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
.gitignore
README.md
jest.config.js
nodemon.json
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

Basic Node.js app with Typescript

This boilerplate was created for the blog post How to create a Node.js App with TypeScript?

The setup contains

  • Typescript configuration for a Node.js app
  • Node dev. setup with source file watching
  • Prettier for formatting your code
  • TSlint for linting
  • Jest for unit testing

Usage

  1. Clone the repo. to a folder name of your choice
  2. Remove .git folder (to remove git history)
  3. Run git init and add your new remote
  4. yarn start and start coding by modifying ./src/index.ts

Possible improvements to the boilerplate

  • Add Husky and Pretty-quick to run Prettier as pre-commit hook
  • Add a basic Node.js app as an example instead of the console.log
  • Use that example for an unit test
You can’t perform that action at this time.