TypescriptExpress
CI Status
About
Get up and running with a express server written in typescript that is packed with a handful of goodies like IOC principles, Winston logging, JOI validation, Unit Test, and Integration test.
Tech Stack Check List
- Typescript
- Express
- Swagger
- Swagger UI
- dotenv
- JOI validation
- Morgan
- Jest Unit Test
- Newman (Postman Integration Test)
- Docker
Getting Started
With Docker
docker-compose up -d
to run the unit test, integration test and start the server- can verify its up and running by visiting http://localhost:8080/api-docs/swagger/
docker-compose down
to spin down everything
With node
- Run
npm i
to install the dependencies - Run
npm run dev
to get a local dev server spun up on port 8080, you can verify its up and running by visiting http://localhost:8080/api-docs/swagger/ - Run
npm test
to run the unit test and print out the coverage of the project- Test can be put into watch mode by running
npm run test:watch
- Test can be put into watch mode by running
- Run
npm run test:it
to run the newman collection runner (if already running the dev server you can just runnpm run newman:local
)