A collection of snippets formatted to fit with Team Hive backend standards and improve workflow.
Available Snippets
NestJs
Module (n-mod)
Controller (n-cont)
Service (n-serv)
Service Test (n-tserv)
Provider (n-prov)
DTO (n-dto)
Tokens (n-token)
Fetch All and Count (n-fa-and-count)
Fetch All Pagination DTO (n-fa-pg-dto)
Fetch All Pagination DTO With Filter (n-fa-pg-dto-w-filter)
Docs Fetch All (n-doc-fa)
Docs Fetch Detail (n-doc-fetch)
Docs Create (n-doc-create)
Docs Update (n-doc-update)
Docs Delete (n-doc-delete)
TypeDi
Service (tdi-serv)
Provider (tdi-prov)
Entity Provider (tdi-entity-prov)
Sequelize Typescript
Entity (st-entity)
Column (st-col)
Foreign Key (st-f-key)
Database Factory (st-db-factory)
Endpoint Comparison
Endpoint Comparison Module
Endpoint Comparison Controller Definition
Endpoint Comparison Request Definition
Requirements
In your vscode settings.json add the following rule: "editor.suggest.snippetsPreventQuickSuggestions": false
This will allow for tab completion while filling in values in the snippet, which by default is turned off.
Release Notes
Initial release
1.0.0
Initial release of hive-backend-snippets
1.1.0
Adds Endpoint Comparison snippets
Adds Nest.js Token snippet
1.1.1
Adds Endpoint Comparison snippets to package
1.2.0
Add Snippet to create Jest test of Nest Service (n-tserv).