npm inx lint <project>nx test <project>nx build <project>For API we have build:express & build:lambda to build for deployment on Docker or on serverless Lambda/Cloud Functions etc.
nx serve <project>export CDK_STACK_ENV=<env>
export CDK_DOMAIN_NAME=<domain>
export CDK_DOMAIN_CERTIFICATE_API=<cert_id>
export CDK_DOMAIN_CERTIFICATE_WEB=<cert_id>
nx deploy infraYou can start local development of all dependencies and components by running
docker compose upor by running the included IntelliJ Run Configuration
[Docker] Up
To debug an app use included IntelliJ Run Configuration
API: [API][Docker] Debug
- Create monorepo workspace with API
npx create-nx-workspace@16.5.2 longurlrip
nx g @nx/react:setup-tailwind --project=web- Create infra project
nx g @nx/node:application --name infra
nx g @nx/react:setup-tailwind --project=web- Create AWS CDK project for infra project
npx cdk init app --language=typescript - Create web project
nx g @nx/react:app web- Add tailwind to react web project
nx g @nx/react:setup-tailwind --project=web- Create shared types library for API & web
nx g @nrwl/node:library --name types- API
- API Docker
- API Lambda
- Web
- Web S3 & CDN
- API Cognito
- API Auth
