This is a server that uses Node.js, Express and TypeScript.
To run this project you'll need:
- Node.js (version 10+)
npmavailable on your path in your CLI
Install dependencies with NPM:
npm installYou can run the following with npm run ...:
build: builds the project using TypeScript, output will be in thedistfolder;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