Open2
個人的に触ってみたい技術(2022)

- planetscale (https://planetscale.com/)
- blitzjs (https://blitzjs.com/)
- CDK for terraform (https://www.terraform.io/cdktf)
- kafka (https://kafka.apache.org/)
- nx (https://nx.dev/)

Nxの初期設定
npx create-nx-workspace happynrwl --preset=ts
yarn add -D @nrwl/react @nrwl/nest
npx nx g @nrwl/react:app client
npx nx g @nrwl/nest:app server --frontendProject=client
npx nx run-many --target=serve --projects=client,server
# Dockerfile作成
docker build -t happynrwl .
docker run -it -p 3333:3333 happynrwl
Dockerfile
FROM node:14
WORKDIR /opt/app
COPY . .
RUN yarn install
RUN npx nx run-many --target=build --projects=client,server
CMD node dist/packages/server/main.js
参考リンク