Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/warfox/typescript-expressjs
Express.js app using TypeScript :rocket:
https://github.com/warfox/typescript-expressjs
chai express expressjs mocha supertest typescript
Last synced: about 8 hours ago
JSON representation
Express.js app using TypeScript :rocket:
- Host: GitHub
- URL: https://github.com/warfox/typescript-expressjs
- Owner: WarFox
- License: mit
- Created: 2020-10-25T13:36:27.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-25T15:16:35.000Z (about 4 years ago)
- Last Synced: 2024-11-09T20:40:18.734Z (about 2 months ago)
- Topics: chai, express, expressjs, mocha, supertest, typescript
- Language: TypeScript
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
[[http://spacemacs.org][file:https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg]]
[[htts://www.typescriptlang.org/][file:https://img.shields.io/static/v1.svg?label=TS&message=TypeScript&color=%233178C6]]#+title: Typescript Express.js
#+begin_quote
If you’re new to TypeScript, checkout [this handy cheatsheet](https://devhints.io/typescript)
#+end_quoteThis 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 [[https://mochajs.org/][Mocha]], [[https://www.chaijs.com/][Chai]] and [[https://github.com/visionmedia/supertest][SuperTest]].
[[https://prettier.io/][Prettier]] and [[https://eslint.org/][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:
#+begin_src bash
npm run watch-node
#+end_srcTo do a one-off build, use
#+begin_src bash
npm run build
#+end_src** Lint
Code quality is set up for you with =eslint=.
Run it with:
#+begin_src bash
npm run lint
#+end_src** Tests
=Mocha= tests are set up to run with:
#+begin_src bash
npm test
#+end_srcTo run tests in watch mode use:
#+begin_src bash
npm run watch-test
#+end_src** Continuous Integration
*** Github Actions
=.github/workflows/build.yml=