Typeplate

screenshot of Typeplate
express

REST API boilerplate with Typescript, Express.js, Typeorm and Mocha.

Overview

This product is a REST API boilerplate built using TypeScript, Express.js, TypeORM, and Mocha. It aims to provide a ready-to-use solution for building RESTful APIs with features like business validation, logging, testing, documentation, security measures, authentication processes, performance optimizations, and asset management.

Features

  • Clear & clean code architecture with classic layers such as controllers, services, repositories, models
  • Object Relational Mapping with TypeORM
  • Entity generation with rsgen
  • Business validation with self-designed business members
  • Logs management with morgan and winston
  • Testing with unit and integration test sets built with mocha, chai, sinon, and supertest
  • Documentation with api-doc
  • Security measures including SSL secure connection, CORS, helmet, hpp, rate limiting, route validation, error handling, JWT and oAuth authentication
express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.