Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxgfr/starter-express-typescript
Simple starter of an express server written in typescript using dependencies injection (ioc)
https://github.com/maxgfr/starter-express-typescript
boilerplate dependency-injection eslint express inversify inversify-express inversifyjs ioc jest mock nestjs nodejs prettier starter supertest swc test typescript
Last synced: 7 days ago
JSON representation
Simple starter of an express server written in typescript using dependencies injection (ioc)
- Host: GitHub
- URL: https://github.com/maxgfr/starter-express-typescript
- Owner: maxgfr
- License: mit
- Created: 2022-03-17T16:49:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T16:25:32.000Z (7 months ago)
- Last Synced: 2024-04-14T11:31:49.534Z (7 months ago)
- Topics: boilerplate, dependency-injection, eslint, express, inversify, inversify-express, inversifyjs, ioc, jest, mock, nestjs, nodejs, prettier, starter, supertest, swc, test, typescript
- Language: TypeScript
- Homepage:
- Size: 603 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# starter-express-typescript
Boilerplate of an [ExpressJS server](https://expressjs.com/) server with [TypeScript](https://www.typescriptlang.org/) using the concept of dependencies injection (inversion of control) thanks to [InversifyJS](https://github.com/inversify/InversifyJS). It uses the rust compiler [swc](https://swc.rs/) to compile the TypeScript code.
## Clone repository and install dependencies
```sh
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
```sh
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:
```sh
yarn dev # For running the code in development thanks to swc and nodemon
```> **:warning: No typechecking made in dev mode**
## Testing the code
```sh
yarn test # For running unit test
yarn test:watch # For watching unit test
```