This is a server that uses Node.js, Express and TypeScript.
To run this project you'll need:
- Node.js (version 10+)
npm
available on your path in your CLI
Install dependencies with NPM:
npm install
You can run the following with npm run ...
:
build
: builds the project using TypeScript, output will be in thedist
folder;start
: starts the server in development mode, automatically reloading when code changes;test
: runs tests in watch mode using Jest;format
: formats all code using Prettier
We use Prettier to format TypeScript source code. You can see the
settings in .prettierc
.
Additionally, EditorConfig is used to keep in sync indentation and some other minor editor settings.
You can add additional tests in the ./test/integration.test.ts
file.
The project is set up to use Jest with Typescript, you can run the tests using:
npm run test