Skip to content

Simple starter of an express server written in typescript using dependencies injection (ioc)

License

Notifications You must be signed in to change notification settings

maxgfr/starter-express-typescript

Repository files navigation

starter-express-typescript

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.

Clone repository and install dependencies

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

Running the code

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

Testing the code

yarn test # For running unit test
yarn test:watch # For watching unit test