GithubHelp home page GithubHelp logo

mrtonyhuynh / ack-nestjs-boilerplate-mongoose Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrechristikan/ack-nestjs-boilerplate

0.0 1.0 0.0 2.13 MB

NestJs Boilerplate. Authentication (OAuth2, API Key), Mongoose, MongoDB , Configuration, Multi Languages (i18n), etc. Advance Example ๐Ÿฅถ. NestJs v8.x ๐Ÿฅณ, Typescript ๐Ÿš€. Production Ready ๐Ÿ”ฅ

License: MIT License

Shell 0.15% TypeScript 99.85%

ack-nestjs-boilerplate-mongoose's Introduction

Contributors Forks Stargazers Issues MIT License

NestJs NodeJs Typescript MongoDB JWT Jest Yarn Docker

ACK NestJs Boilerplate Mongoose ๐Ÿ”ฅ ๐Ÿš€

Best uses for Restful API, Microservice, or SaaS Project

ack-nestjs-boilerplate-mongoose is a NestJs Boilerplate with Mongoose and MongoDB as Database.

Made with following

You can Request Feature or Report Bug with following this link

Important

If you change env value of APP_MODE to secure that will trigger more Middleware and Guard.

  1. TimestampMiddleware, tolerant 5 minutes of request.
  2. UserAgentMiddleware, whitelist of user agent.
  3. ApiKeyGuard, check api key based on database.
  4. CorsMiddleware, check cors

You can see our e2e testing file or read the documentation on section environment.

Build with

Describes which version of the main packages and main tools.

Name Version
NestJs v8.x
NodeJs v17.x
Typescript v4.x
Mongoose v6.x
MongoDB v5.x
Yarn v1.x
NPM v8.x
Docker v20.x
Docker Compose v2.x

Objective

ack-nestjs-boilerplate-mongoose have some objective.

  • Simple, scalable and secure
  • Avoid spaghetti code
  • Component based
  • Reusable component
  • Easy to maintenance
  • Support for all microservice patterns

Features

  • NestJs v8.x ๐Ÿฅณ
  • Production Ready ๐Ÿ”ฅ
  • Typescript ๐Ÿš€
  • Authentication and Authorization (OAuth2, API Key, Basic Auth) ๐Ÿ’ช
  • Mongodb integrate by using Mongoose Package ๐ŸŽ‰
  • Database Migration
  • Integrate with AWS
  • Server Side Pagination
  • Url Versioning
  • Request Validation Pipe
  • Custom error status code ๐Ÿคซ
  • Logger and Debugger ๐Ÿ“
  • Centralize Configuration ๐Ÿค–
  • Centralize Exception Filter
  • Multi-language (i18n)
  • Dynamic Setting from Database ๐Ÿ—ฟ
  • Maintenance Mode on / off
  • Advance Example ๐Ÿฅถ
  • Support Docker Installation
  • Support CI/CD with Github Action or Jenkins
  • Husky GitHook For Check Source Code, and Run Test Before Commit ๐Ÿถ
  • Linter with EsLint for Typescript

Prerequisites

We assume that everyone who comes here is programmer with intermediate knowledge and we also need to understand more before we begin in order to reduce the knowledge gap.

  1. Understand NestJs Fundamental, Main Framework. NodeJs Framework with support fully TypeScript.
  2. UnderstandTypescript Fundamental, Programming Language. It will help us to write and read the code.
  3. Understand ExpressJs Fundamental, NodeJs Base Framework. It will help us in understanding how the NestJs Framework works.
  4. Understand what NoSql is and how it works as a database, especially MongoDB.

Todo

Next development

  • Docker Compose File Mongodb Replication Set
  • Swagger

Documentation

Let's go into deep ! ๐Ÿš€

Endpoints

Import endpoints.json into postman or see our e2e testing

Microservice

Nestjs microservice or Kafka integration will put in separate repo ack-microservice-nestjs-boilerplate-mongoose.

License

Distributed under MIT licensed.

Contributors

Thanks goes to these wonderful people

Boilerplate

PSheon
PSheon

aallithioo
aallithioo

Documentation

Tiaamoo
Tiaamoo

Contact

Andre Christi kan

Github LinkedIn Instagram

ack-nestjs-boilerplate-mongoose's People

Contributors

aallithioo avatar andrechristikan avatar dependabot[bot] avatar psheon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.