Minimal example of Express application with Dependency Injection pattern (for development environment). This projects includes 3 layers:
- controllers
- application (service layer)
- adapters (infrastructure layer).
- Typescript
- Express
- PostgreSQL (typeorm)
- InversifyJs (Dependency Injection framework)
- log4js
- Docker
- Clone this repository:
git clone https://github.com/Ivanbyone/typescript-express-typeorm-inversifyjs-template.git
- Create .env file as .env.example with your secrets.
- Create Docker image.
docker build . -t <your_name>
- Run docker
docker run <your_name>
Congratulations! Have a good development.