Server used by team B (SG 1st runner up) for the 2022 Credit Suisse Coding Challenge.
- Typescript with express framework
- Eslint and prettier for code styling
- (Tests) Jest framework used for locally E2E test
- (CI/CD) Heroku pipeline to automatically deploy PRs and Commits to
master
branch
You will need npm
and node
to install the dependencies.
$ brew install nvm
At the point of writing, cis2022-sg
uses node v16.14.2
. We can run nvm install
in the main directory, and .nvmrc
will inform nvm
with the appropriate version to install.
$ nvm install
$ node --version
# 16.14.2
We can now install the necessary dependencies.
# Install dependencies
$ npm install
$ npm run dev
$ npm run test
# Run all the tests
$ npm run test -- tests/<filename>
# Run specific test file
# Linting
$ npm run lint