Skip to content

WarFox/typescript-expressjs

Repository files navigation

Typescript Express.js

https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg https://img.shields.io/static/v1.svg?label=TS&message=TypeScript&color=%233178C6

If you’re new to TypeScript, checkout [this handy cheatsheet](https://devhints.io/typescript)

This is a starter template repository for setting up an Express.js app with TypeScript.

It implements 2 GET endpoints /ping and /pong with tests using Mocha, Chai and SuperTest.

Prettier and ESlint is also setup for you. Feel free to send a PR if you think something needs to change.

Build

To run in development mode use:

npm run watch-node

To do a one-off build, use

npm run build

Lint

Code quality is set up for you with eslint.

Run it with:

npm run lint

Tests

Mocha tests are set up to run with:

npm test

To run tests in watch mode use:

npm run watch-test

Continuous Integration

Github Actions

.github/workflows/build.yml