express-typescript-skeleton
nest-api-example
express-typescript-skeleton | nest-api-example | |
---|---|---|
7 | 4 | |
454 | 75 | |
- | - | |
7.5 | 9.7 | |
8 days ago | 4 days ago | |
TypeScript | TypeScript | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
express-typescript-skeleton
-
Difference between TsED and NestJS?
I have been using TsED for a year now and I can say that so far I have not had any problems. It is very comfortable to work with this mini-framework. In addition, the creator provides very fast support and is happy to help with any problems. A few months ago I created a REST API template with hexagonal architecture using TsED.
- express-typescript-skeleton, a starter template for Node.js, is looking for contributions!
- 🚀 NodeJS + Ts.ED + TypeScript + Clean Architecture Template
-
Production-ready template for back ends created with Node.js, TS and Express
https://github.com/borjapazr/express-typescript-skeleton
As I say in the README of the project:
This is an opinionated template. The architecture of the code base and the configuration of the different tools used has been based on best practices and personal preferences.
This template does not pretend to have the magic solution to all the problems that a developer may face when creating a REST API using Node.js. This is my contribution, after spending some time on it, to the community. It is an opinionated codebase created based on personal preferences, but also based on the application of best practices.
All criticisms and opinions are welcome, indeed I am very grateful for them. Based on them this could evolve, adapt and become something better. I am sure it will bring something to someone at some point, because even from the worst things something can be learned.
Many thanks to all of you who have taken the time to look at the project.
- 🔰🦸 Production-ready template for backends created with Node.js, Typescript and Express
nest-api-example
-
Express API Testing
Integration test with jest and supertest E2E test with jest and Pactum
-
How to test nestjs modules?
Example: https://github.com/leosuncin/nest-api-example/blob/88cf73a2189c8556c703a2f8b4ff21970d7ffab4/src/blog/services/comment.service.spec.ts
-
Leveraging repository inside of service.ts ?
Feel free to check my code https://github.com/leosuncin/nest-api-example
-
Test interceptor
Example https://github.com/leosuncin/nest-api-example/blob/master/src/auth/interceptors/token.interceptor.spec.ts
What are some alternatives?
nestjs-api-boilerplate - Nestjs API Boilerplate 😍 💪 🔥 : Typescript, Postgresql, TypeORM, Swagger for Api documentation, Passport-JWT authentication, Jest, Env configuration, Migrations, Seeds, Docker, Redis, AWS S3, and best application architecture.
mongodb-memory-server - Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).
domain-driven-hexagon - Learn Domain-Driven Design, software architecture, design patterns, best practices. Code examples included
jest-mongodb - Jest preset for MongoDB in-memory server
node-typescript-boilerplate - Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.
jest-create-mock-instance - Create mock instances with Jest
superfetch - 🐕 HTTP Server testing library inspired by node-supertest-fetch.
commithelper - A tool to create and lint commit messages
ddd-forum - Hacker news-inspired forum app built with TypeScript using DDD practices from solidbook.io.
Sinon.JS - Test spies, stubs and mocks for JavaScript.
typescript-express-starter - 📘 Quick and Easy TypeScript Express Starter
testcontainers-node - Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.