api generate - wwwsolutions/nestjs-starter-kit GitHub Wiki
Implement and utilize app.
- api integrations
// generate app
yarn add -D @nrwl/nest
yarn nx generate @nrwl/nest:application --name=api --standaloneConfig --tags=type:api --no-interactive
// apps/api/src/app/app.controller.ts
// apps/api/src/app/app.controller.spec.ts
// apps/api/src/app/app.service.ts
// apps/api/src/app/app.service.spec.ts
// .gitkeep
// apps/api/src/app/app-module.ts
import { Module } from '@nestjs/common';
import { ApiCoreModule } from '@wwwsolutions/api/core';
@Module({
imports: [ApiCoreModule],
})
export class AppModule {}
// apps/api/src/main.ts
// apps/api/.env.local
// apps/api/.env.development
# DEVELOPMENT MODE
##### WINSTON CONFIGURATION ############################################################################
### REQUIRED
WINSTON_LEVEL_CONSOLE='verbose'
WINSTON_PRETTY_PRINT=true
WINSTON_LEVEL_FILE='silly'
WINSTON_FILE_PATH='logs/app.log'
##### API CONFIGURATION ################################################################################
### REQUIRED
API_INTEGRATION='ApiGraphqlPrismaIntegration'
### OPTIONAL
# API_TYPE='GraphqlApi'
# API_PROTOCOL='http'
# API_HOST='localhost'
# API_PORT=3000
# API_PREFIX='graphql'
// apps/api/.env.production
// apps/api/.env.staging
// apps/api/.env.test
// apps/api/.env.test