GraphQL-NestJS-MongoDB-TypeScript-Tutorial
nestia
GraphQL-NestJS-MongoDB-TypeScript-Tutorial | nestia | |
---|---|---|
- | 38 | |
23 | 1,612 | |
- | - | |
0.0 | 9.6 | |
almost 3 years ago | 6 days ago | |
TypeScript | TypeScript | |
- | MIT License |
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.
GraphQL-NestJS-MongoDB-TypeScript-Tutorial
We haven't tracked posts mentioning GraphQL-NestJS-MongoDB-TypeScript-Tutorial yet.
Tracking mentions began in Dec 2020.
nestia
-
I made Swagger/OpenAPI type definitions and converter library
However, lacking of typia and nestia libraries is obvious. If you also need detailed Swagger/OpenAPI spec like me, but you need more detailed types/properties, or found something missed, please take a contribution.
-
I made "TypeScript Swagger Editor", new type of Swagger UI writing TypeScript code in the browser
For reference, if your backend application utilizes nestia (NestJS), you don't need to build the SDK (Software Development Kit) library by converting from the Swagger Documents. The nestia will automatically generate the much advanced SDK library, just by analyzing your backend application's source code.
-
[Typia] I made Protocol Buffer library of TypeScript, easiest in the world
Also, I'd introduced my another library nestia, which utilizes typia in the NestJS framework, so that boosts up backend server performance 30x up. And since typia analyzes the NestJS backend source code at the compiler level, I also provided convenient generators such as SDK and Mockup Simulator.
-
Good bye "typescript-is" (ancestor of "typia", 20,000x faster validator)
nestia: https://github.com/samchon/nestia
-
Migration tool from Swagger to NestJS - SDK generator and Mockup simulator for every backend stacks
/** * @controller BodyController.post() * @path POST /body * @nestia Generated by Nestia - https://github.com/samchon/nestia */ export async function post( connection: IConnection, body: IBbsArticle.IStore, ): Promise { return !!connection.simulate ? post.simulate( connection, body, ) : Fetcher.fetch( connection, post.ENCRYPTED, post.METHOD, post.path(), body, ); } export namespace post { export type Input = IBbsArticle.IStore; export type Output = IBbsArticle;
-
[Nestia] I made backend simulator for frontend developers (similar with MSW, but fully automated)
When you build backend simulator of nestia, nestia analyzes your backend server source codes, and writes fake scripts simulating the NestJS backend server. The simulator even includes request data validator and random mock-up data generator.
-
[NestJS] I made backend server simulator without backend server
/** * @packageDocumentation * @module api.functional.bbs.articles * @nestia Generated by Nestia - https://github.com/samchon/nestia */ //================================================================ import { Fetcher } from "@nestia/fetcher"; import type { IConnection } from "@nestia/fetcher"; import typia from "typia"; import { NestiaSimulator } from "./../../../utils/NestiaSimulator"; import type { IBbsArticle } from "./../../../structures/IBbsArticle"; /** * Update an article. * * @param section Section code * @param id Target article ID * @param input Content to update * @returns Updated content * * @controller BbsArticlesController.update() * @path PUT /bbs/:section/articles/:id * @nestia Generated by Nestia - https://github.com/samchon/nestia */ export async function update( connection: IConnection, section: string, id: string, input: update.Input, ): Promise { return !!connection.random ? update.simulate( connection, section, id, input, ) : Fetcher.fetch( connection, update.ENCRYPTED, update.METHOD, update.path(section, id), input, ); } export namespace update { export type Input = IBbsArticle.IStore; export type Output = IBbsArticle; export const METHOD = "PUT" as const; export const PATH: string = "/bbs/:section/articles/:id"; export const ENCRYPTED: Fetcher.IEncrypted = { request: false, response: false, }; export const path = (section: string, id: string): string => { return `/bbs/${encodeURIComponent(section ?? "null")}/articles/${encodeURIComponent(id ?? "null")}`; } export const random = (g?: Partial): Output => typia.random(g); export const simulate = async ( connection: IConnection, section: string, id: string, input: update.Input, ): Promise => { const assert = NestiaSimulator.assert({ method: METHOD, host: connection.host, path: path(section, id) }); assert.param("section")("string")(() => typia.assert(section)); assert.param("id")("uuid")(() => typia.assert(id)); assert.body(() => typia.assert(input)); return typia.random( typeof connection.random === 'object' && connection.random !== null ? connection.random : undefined ); } }
-
[Nestia] Make NestJS 30x faster with fastify
For reference, you can run the benchmark program on your computer by following below commands. After the benchmark, a report would be issued under nestia/benchmark/results/{YOUR-CPU-NAME} directory. If you send the result PR on my repo (https://github.com/samchon/nestia), I'd pleasure and appreciate it even more.
-
[Nestia] I made automatic e2e test functions generator for NestJS
I made automatic e2e test functions generator for NestJS, corresponding to every API endpoints. Just setup nestia following the guide documents, and run npx nestia e2e comnand, then you can get the automatically generated e2e functions.
- Nestia, make NestJS super-fast and super-easy
What are some alternatives?
graphql - GraphQL (TypeScript) module for Nest framework (node.js) 🍷
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
amplication - 🔥🔥🔥 Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.
typia - Super-fast/easy runtime validations and serializations through transformation
nestjs - A collection of badass modules and utilities to help you level up your NestJS applications 🚀
trpc-fe-boilerplate-next - ⚒️ Minimal tRPC frontend Nextjs boilerplate for separate BE-FE repositories. Easily consume fully typesafe APIs.
crystal - 🔮 Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!
typescript-starter - Quickly create and configure a new library or Node.js project
blockfrost-js - Node.js SDK for the Blockfrost.io API.
emojihub - 😺 A simple & free HTTP API with emojis for your cool apps
typeorm-transactional - A Transactional Method Decorator for TypeORM that uses Async Local Storage or cls-hooked to handle and propagate transactions between different repositories and service methods.