/nuxt-graphpack-sample

A sample application of GraphQL using Nuxt.js as the front end and Graphpack as the back end

Primary LanguageVue

nuxt-graphpack-sample

フロントに Nuxt.js、バックエンドに Graphpackを使ったGraphQLのサンプルアプリケーションです。 ユーザー情報の操作を通して、Query, Mutation, Subscriptionの使い方を紹介しています。 バックエンドは、AppSyncなどのサービスを使うわけでなはなく、ローカルで完結するものになっています。 データは仮で用意しているのでDB構築なども必要ありません。 本リポジトリをクローンしていただいて、Getting Startの手順を実施するとサンプルアプリをブラウザから動かすことができます。

フォルダ構成

  • client
    • Nuxt.js+Apollo Clientで実装したクライアントサイドのGraphQLアプリケーションです。
  • client_vuetify
    • clientの見た目をVuetifyで綺麗にした版です。
  • server
    • Graphpackを使って実装したサーバーサイドのGraphQLアプリケーションです。

参考記事

コチラのソースコードの詳細は、以下でも紹介しています。あわせてご覧ください。

This is A sample application of GraphQL using Nuxt.js as the front end and Graphpack as the back end

Getting Start

  • Firtst, You run Graphpack Server.
cd server
npm i
npm run dev
  • Second, You run Nuxt App.
cd client
npm i 
npm run dev
  • Finally, You can access htttp:localhost:3000 from the browser!