0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Nest(Node.js), Vue3, MySQL(Prisma), GraphQLで動かしてみる

Posted at

## 環境構築

  • Docker-compose

Nest.js

  • dockerコンテナ内でnpx nest new {APP_NAME} で新規プロジェクトを作成
  • prismaの設定
  • yarn add -D prisma
  • yarn add @prisma/client
  • yarn init で、生成されたファイルにテーブルの定義をしていく
  • 定義後にnpx prisma migrate devでデータベース作成
  • Nest.jsにデータを読み込ませるために、テーブルを更新したら、毎回マイグレーション後にnpx prisma generateをする
  • GraphQLの設定
  • 参考 Nest/GraphQL/schema-first

error: GraphQLのversionは15系じゃないとうまく動かなかった

  • リファレンス通りに実行すれば問題ない

Vue3 (Vite)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?