Skip to content

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

Notifications You must be signed in to change notification settings

Takumon/nuxt-graphpack-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published