Skip to content

Commit

Permalink
docs(node): add recipes for various databases w/ node (nrwl#17110)
Browse files Browse the repository at this point in the history
  • Loading branch information
barbados-clemens authored Jun 20, 2023
1 parent 2503249 commit 0be5d3d
Show file tree
Hide file tree
Showing 9 changed files with 362 additions and 0 deletions.
89 changes: 89 additions & 0 deletions docs/generated/manifests/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -2738,6 +2738,95 @@
"children": [],
"disableCollapsible": false
},
{
"name": "Database",
"path": "/recipes/database",
"id": "database",
"isExternal": false,
"children": [
{
"name": "Using Prisma with NestJS",
"path": "/recipes/database/nestjs-prisma",
"id": "nestjs-prisma",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using Mongo with Fastify",
"path": "/recipes/database/mongo-fastify",
"id": "mongo-fastify",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using Redis with Fastify",
"path": "/recipes/database/redis-fastify",
"id": "redis-fastify",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using Postgres with Fastify",
"path": "/recipes/database/postgres-fastify",
"id": "postgres-fastify",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using PlanetScale with Serverless Fastify",
"path": "/recipes/database/serverless-fastify-planetscale",
"id": "serverless-fastify-planetscale",
"isExternal": false,
"children": [],
"disableCollapsible": false
}
],
"disableCollapsible": false
},
{
"name": "Using Prisma with NestJS",
"path": "/recipes/database/nestjs-prisma",
"id": "nestjs-prisma",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using Mongo with Fastify",
"path": "/recipes/database/mongo-fastify",
"id": "mongo-fastify",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using Redis with Fastify",
"path": "/recipes/database/redis-fastify",
"id": "redis-fastify",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using Postgres with Fastify",
"path": "/recipes/database/postgres-fastify",
"id": "postgres-fastify",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Using PlanetScale with Serverless Fastify",
"path": "/recipes/database/serverless-fastify-planetscale",
"id": "serverless-fastify-planetscale",
"isExternal": false,
"children": [],
"disableCollapsible": false
},
{
"name": "Enforce Module Boundaries",
"path": "/recipes/enforce-module-boundaries",
Expand Down
111 changes: 111 additions & 0 deletions docs/generated/manifests/recipes.json
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,117 @@
"path": "/recipes/deployment/deploy-nextjs-to-vercel",
"tags": []
},
"/recipes/database": {
"id": "database",
"name": "Database",
"description": "Recipes for using various databases in node apps.",
"file": "",
"itemList": [
{
"id": "nestjs-prisma",
"name": "Using Prisma with NestJS",
"description": "",
"file": "shared/recipes/database/nestjs-prisma",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/nestjs-prisma",
"tags": ["database", "node"]
},
{
"id": "mongo-fastify",
"name": "Using Mongo with Fastify",
"description": "",
"file": "shared/recipes/database/mongo-fastify",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/mongo-fastify",
"tags": ["database", "node"]
},
{
"id": "redis-fastify",
"name": "Using Redis with Fastify",
"description": "",
"file": "shared/recipes/database/redis-fastify",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/redis-fastify",
"tags": ["database", "node"]
},
{
"id": "postgres-fastify",
"name": "Using Postgres with Fastify",
"description": "",
"file": "shared/recipes/database/postgres-fastify",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/postgres-fastify",
"tags": ["database", "node"]
},
{
"id": "serverless-fastify-planetscale",
"name": "Using PlanetScale with Serverless Fastify",
"description": "",
"file": "shared/recipes/database/serverless-fastify-planetscale",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/serverless-fastify-planetscale",
"tags": ["database", "node", "serverless"]
}
],
"isExternal": false,
"path": "/recipes/database",
"tags": []
},
"/recipes/database/nestjs-prisma": {
"id": "nestjs-prisma",
"name": "Using Prisma with NestJS",
"description": "",
"file": "shared/recipes/database/nestjs-prisma",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/nestjs-prisma",
"tags": ["database", "node"]
},
"/recipes/database/mongo-fastify": {
"id": "mongo-fastify",
"name": "Using Mongo with Fastify",
"description": "",
"file": "shared/recipes/database/mongo-fastify",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/mongo-fastify",
"tags": ["database", "node"]
},
"/recipes/database/redis-fastify": {
"id": "redis-fastify",
"name": "Using Redis with Fastify",
"description": "",
"file": "shared/recipes/database/redis-fastify",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/redis-fastify",
"tags": ["database", "node"]
},
"/recipes/database/postgres-fastify": {
"id": "postgres-fastify",
"name": "Using Postgres with Fastify",
"description": "",
"file": "shared/recipes/database/postgres-fastify",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/postgres-fastify",
"tags": ["database", "node"]
},
"/recipes/database/serverless-fastify-planetscale": {
"id": "serverless-fastify-planetscale",
"name": "Using PlanetScale with Serverless Fastify",
"description": "",
"file": "shared/recipes/database/serverless-fastify-planetscale",
"itemList": [],
"isExternal": false,
"path": "/recipes/database/serverless-fastify-planetscale",
"tags": ["database", "node", "serverless"]
},
"/recipes/enforce-module-boundaries": {
"id": "enforce-module-boundaries",
"name": "Enforce Module Boundaries",
Expand Down
81 changes: 81 additions & 0 deletions docs/generated/manifests/tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,41 @@
"id": "node-aws-lambda",
"name": "Deploying AWS lambda in Node.js",
"path": "/recipes/deployment/node-aws-lambda"
},
{
"description": "",
"file": "shared/recipes/database/nestjs-prisma",
"id": "nestjs-prisma",
"name": "Using Prisma with NestJS",
"path": "/recipes/database/nestjs-prisma"
},
{
"description": "",
"file": "shared/recipes/database/mongo-fastify",
"id": "mongo-fastify",
"name": "Using Mongo with Fastify",
"path": "/recipes/database/mongo-fastify"
},
{
"description": "",
"file": "shared/recipes/database/redis-fastify",
"id": "redis-fastify",
"name": "Using Redis with Fastify",
"path": "/recipes/database/redis-fastify"
},
{
"description": "",
"file": "shared/recipes/database/postgres-fastify",
"id": "postgres-fastify",
"name": "Using Postgres with Fastify",
"path": "/recipes/database/postgres-fastify"
},
{
"description": "",
"file": "shared/recipes/database/serverless-fastify-planetscale",
"id": "serverless-fastify-planetscale",
"name": "Using PlanetScale with Serverless Fastify",
"path": "/recipes/database/serverless-fastify-planetscale"
}
],
"deno": [
Expand All @@ -876,6 +911,52 @@
"path": "/recipes/deployment/deno-netlify-functions"
}
],
"database": [
{
"description": "",
"file": "shared/recipes/database/nestjs-prisma",
"id": "nestjs-prisma",
"name": "Using Prisma with NestJS",
"path": "/recipes/database/nestjs-prisma"
},
{
"description": "",
"file": "shared/recipes/database/mongo-fastify",
"id": "mongo-fastify",
"name": "Using Mongo with Fastify",
"path": "/recipes/database/mongo-fastify"
},
{
"description": "",
"file": "shared/recipes/database/redis-fastify",
"id": "redis-fastify",
"name": "Using Redis with Fastify",
"path": "/recipes/database/redis-fastify"
},
{
"description": "",
"file": "shared/recipes/database/postgres-fastify",
"id": "postgres-fastify",
"name": "Using Postgres with Fastify",
"path": "/recipes/database/postgres-fastify"
},
{
"description": "",
"file": "shared/recipes/database/serverless-fastify-planetscale",
"id": "serverless-fastify-planetscale",
"name": "Using PlanetScale with Serverless Fastify",
"path": "/recipes/database/serverless-fastify-planetscale"
}
],
"serverless": [
{
"description": "",
"file": "shared/recipes/database/serverless-fastify-planetscale",
"id": "serverless-fastify-planetscale",
"name": "Using PlanetScale with Serverless Fastify",
"path": "/recipes/database/serverless-fastify-planetscale"
}
],
"workspace-watching": [
{
"description": "",
Expand Down
38 changes: 38 additions & 0 deletions docs/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,44 @@
}
]
},
{
"name": "Database",
"id": "database",
"description": "Recipes for using various databases in node apps.",
"itemList": [
{
"name": "Using Prisma with NestJS",
"id": "nestjs-prisma",
"tags": ["database", "node"],
"file": "shared/recipes/database/nestjs-prisma"
},
{
"name": "Using Mongo with Fastify",
"id": "mongo-fastify",
"tags": ["database", "node"],
"file": "shared/recipes/database/mongo-fastify"
},
{
"name": "Using Redis with Fastify",
"id": "redis-fastify",
"tags": ["database", "node"],
"file": "shared/recipes/database/redis-fastify"
},
{
"name": "Using Postgres with Fastify",
"id": "postgres-fastify",
"tags": ["database", "node"],
"file": "shared/recipes/database/postgres-fastify"
},
{
"name": "Using PlanetScale with Serverless Fastify",
"id": "serverless-fastify-planetscale",
"tags": ["database", "node", "serverless"],
"file": "shared/recipes/database/serverless-fastify-planetscale"
}
]
},

{
"name": "Enforce Module Boundaries",
"id": "enforce-module-boundaries",
Expand Down
8 changes: 8 additions & 0 deletions docs/shared/recipes/database/mongo-fastify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Using MongoDB with Fastify in an Nx Workspace

In this example repo, you’ll learn how to:

- Leverage Nx generators to scaffold out project configurations
- Setup MongoDB with Fastify

{% github-repository url="https://github.com/nrwl/nx-recipes/tree/main/fastify-mongo#nx--fastify--mongodb" /%}
9 changes: 9 additions & 0 deletions docs/shared/recipes/database/nestjs-prisma.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Using Prisma with NestJS in an Nx Workspace

In this example repo, you’ll learn how to:

- Leverage Nx generators to scaffold out project configurations
- Use multiple Prisma schemas in an Nx Workspace
- Extend the generated Prisma clients for seamless NestJS integration

{% github-repository url="https://github.com/nrwl/nx-recipes/tree/main/nestjs-prisma#nx--nestjs--prisma" /%}
8 changes: 8 additions & 0 deletions docs/shared/recipes/database/postgres-fastify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Using Postgres with Fastify in an Nx Workspace

In this example repo, you’ll learn how to:

- Setup Fastify to use Postgres
- Leverage Nx generators to scaffold out projects

{% github-repository url="https://github.com/nrwl/nx-recipes/tree/main/fastify-postgres#nx--fastify--postgres" /%}
9 changes: 9 additions & 0 deletions docs/shared/recipes/database/redis-fastify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Using Redis with Fastify in an Nx Workspace

In this example repo, you’ll learn how to:

- Leverage Nx generators to scaffold out project configurations
- Use Redis with Fastify
- Use Redis Modules, like RediSearch

{% github-repository url="https://github.com/nrwl/nx-recipes/tree/main/fastify-redis#nx--fastify--redis" /%}
Loading

0 comments on commit 0be5d3d

Please sign in to comment.