Boilerplate of an ExpressJS server server with TypeScript using the concept of dependencies injection (inversion of control) thanks to InversifyJS. It uses the rust compiler swc to compile the TypeScript code.
git clone https://github.com/maxgfr/starter-express-typescript # For cloning the repository
cd starter-express-typescript # To navigate to the repository root
yarn # Install dependencies
yarn build # For building the code with typechecking
yarn build:swc # For building without typechecking
yarn start # For running the code builded
Or in development
mode:
yarn dev # For running the code in development thanks to swc and nodemon
⚠️ No typechecking made in dev mode
yarn test # For running unit test
yarn test:watch # For watching unit test