A TypeScript starter for Express that includes all you need to build amazing projects. 🔥
- 🗂 DDD - Domain Driven Design pattern
- ⚖ SOLID - Principles of software design
- 🔑 JWT - JSON Web Token authentication
- 📏 ESLint - Pluggable JavaScript linter
- 💖 Prettier - Opinionated code formatter
- 🎭 Jest - Tool for functionality testing
- 💾 TypeORM - Configure your database using TypeScript and Javascript
- 📂 Absolute import - Import folders and files using the
@
prefix
Clone this repository;
Configure your database on './ormconfig.json';
And run the following commands inside the project folder:
npm install
oryarn
;npm run dev:server
oryarn dev:server
;
To view the project open http://localhost:3333
.
Work with your migrations using the following commands:
npm run typeorm migration:create -n MIGRATIONNAME
oryarn typeorm migration:create -n MIGRATIONNAME
;npm run typeorm migration:run
oryarn typeorm migration:run
;npm run typeorm migration:revert
oryarn typeorm migration:revert
;
Your migrations will be created on './src/shared/infra/typeorm/migrations'.
Create your tests using the '.spec.ts' extension;
And run the following command to run the tests and create a covarage report:
npm run test
oryarn test
;
You can see the coverage report opening the './coverage/lcov-report/index.html' on your navegator.
Made with ♥ by Vilson Castilho