This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
build": { | |
"executor": "@nrwl/web:build", | |
"outputs": ["{options.outputPath}"], | |
"options": { | |
"outputPath": "dist/apps/my-app", | |
"index": "apps/my-app/src/index.html", | |
"main": "apps/my-app/src/main.tsx", | |
"polyfills": "apps/my-app/src/polyfills.ts", | |
"tsConfig": "apps/my-app/tsconfig.app.json", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* For base styles (check out normalize.css) */ | |
@tailwind base; | |
/* Simple reusable components provided by tailwind */ | |
@tailwind components; | |
/* utility classes generated based on our tailwind.config.js */ | |
@tailwind utilities; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"build-tailwind-css": { | |
"builder": "@nrwl/workspace:run-commands", | |
"outputs": [], | |
"options": { | |
"command": "npx tailwindcss-cli@latest build ./src/styles.css -o src/app/tailwind.css", | |
"cwd": "apps/my-app" | |
} | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
purge: [], | |
darkMode: false, // or 'media' or 'class' | |
theme: { | |
extend: {}, | |
}, | |
variants: { | |
extend: {}, | |
}, | |
plugins: [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@nestjs/common'; | |
import { GqlOptionsFactory, GqlModuleOptions } from '@nestjs/graphql'; | |
import { nexusPrisma } from 'nexus-plugin-prisma' | |
import { | |
asNexusMethod, | |
makeSchema, | |
mutationType, | |
objectType, | |
queryType, | |
} from '@nexus/schema' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { GraphQLModule } from '@nestjs/graphql'; | |
import { AppController } from './app.controller'; | |
import { AppService } from './app.service'; | |
import { GraphqlConfigService } from './gql.config' | |
@Module({ | |
imports: [ | |
GraphQLModule.forRootAsync({ | |
useClass: GraphqlConfigService, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is your Prisma schema file, | |
// learn more about it in the docs: https://pris.ly/d/prisma-schema | |
datasource db { | |
provider = "sqlite" | |
url = env("DATABASE_URL") | |
} | |
generator client { | |
provider = "prisma-client-js" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"projects": { | |
"my-api": { | |
"root": "apps/my-api", | |
"sourceRoot": "apps/my-api/src", | |
"projectType": "application", | |
"prefix": "my-api", | |
"targets": { | |
"build": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"migrate-save": { | |
"builder": "@nrwl/workspace:run-commands", | |
"outputs": [], | |
"options": { | |
"command": "npx prisma migrate save --experimental --schema ./src/prisma/prisma.schema", | |
"cwd": "libs/models" | |
} | |
}, | |
"migrate-up": { | |
"builder": "@nrwl/workspace:run-commands", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/Development/Workspaces | |
cd ~/Development/Workspaces | |
npx create-nx-workspace | |
# Follow steps in CLI menu | |
# enter a name: eg. my-project | |
# create a nest app and name it eg. my-app | |
cd my-project | |
nx generate @nrwl/node:library data-model |