Mango

screenshot of Mango

» Server template (MySQL, Express, TypeScript)

Overview

Mango is a robust framework designed to simplify the development of applications using TypeScript and TypeORM. By leveraging modern JavaScript features and streamlined architecture, Mango aims to provide a seamless solution for creating scalable and maintainable back-end services. With its built-in features for resource protection, logging, and user management, developers can focus more on building their applications rather than worrying about the underlying infrastructure.

This framework is especially appealing for those familiar with TypeScript, as it compiles down to clean JavaScript, ensuring compatibility across various environments like Node.js and web browsers. The structured approach to routing, combined with dependency injection and middleware management, positions Mango as a powerful tool for developers seeking efficiency and ease of use in their projects.

Features

  • TypeScript Support: Compiles to clean JavaScript, ensuring compatibility across any browser or Node.js environment.

  • TypeORM Integration: Simplifies database management with typed models, enhancing maintainability and reducing errors.

  • Dependency Injection with TypeDI: Streamlines the management of dependencies, making it easier to manage and test individual components.

  • Routing Controllers: Each controller is organized into its own file, with routes declared using annotations for easier management and scalability.

  • JWT Middleware: Implements a refresh token flow that avoids the need for multiple tokens, simplifying user authentication.

  • Resource Activation Protection: Ensures only authorized users can modify resources, bolstering application security.

  • Comprehensive Logging: Utilizes Winston for logging, which captures all events and actions to a file for easier monitoring and debugging.

  • Flexible API Responses: Supports standardizing API responses, making it easier to handle different states and responses from the server.

Mango combines all these features into a cohesive framework that reduces development friction and empowers developers to build robust applications with confidence.

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.