diff --git a/examples/with-apollo/README.md b/examples/with-apollo/README.md deleted file mode 100644 index d4600552fb..0000000000 --- a/examples/with-apollo/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# nuxt-with-apollo - -> Nuxt.js with Apollo (GraphQL client) - -[DEMO](https://nuxt-apollo.now.sh/) - -## About - -This project uses [Apollo](http://www.apollodata.com/) as a GraphQL client and [Graphcool](https://www.graph.cool/) as a hosted GraphQL backend. - -## Getting Started - -Download this example [or clone the repo](https://github.com/nuxt/nuxt.js): - -```bash -curl https://codeload.github.com/nuxt/nuxt.js/tar.gz/master | tar -xz --strip=2 nuxt.js-master/examples/with-apollo -cd with-apollo -``` - -Install and run: - -```bash -npm install -npm run dev - -# or with Yarn -yarn -yarn dev -``` diff --git a/examples/with-apollo/layouts/default.vue b/examples/with-apollo/layouts/default.vue deleted file mode 100644 index 62147ffc78..0000000000 --- a/examples/with-apollo/layouts/default.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - Nuxt.js + Apollo - - - - - diff --git a/examples/with-apollo/layouts/error.vue b/examples/with-apollo/layouts/error.vue deleted file mode 100644 index 192163dd31..0000000000 --- a/examples/with-apollo/layouts/error.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - Page not found - An error occured - ← Home page - - - - diff --git a/examples/with-apollo/package.json b/examples/with-apollo/package.json deleted file mode 100644 index c3bb76f0f4..0000000000 --- a/examples/with-apollo/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "nuxt-apollo", - "version": "1.0.0", - "description": "Nuxt.js with Apollo", - "author": "Charlie Hield", - "license": "MIT", - "scripts": { - "dev": "nuxt", - "build": "nuxt build", - "start": "nuxt start" - }, - "keywords": [ - "nuxt", - "vue", - "apollo", - "graphql" - ], - "dependencies": { - "apollo-client": "^1.0.2", - "graphql-tag": "^2.0.0", - "isomorphic-fetch": "^2.2.1", - "nuxt": "^0.10.5" - } -} diff --git a/examples/with-apollo/pages/car/_id.vue b/examples/with-apollo/pages/car/_id.vue deleted file mode 100644 index 955b9475ec..0000000000 --- a/examples/with-apollo/pages/car/_id.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - {{ car.make }} {{ car.model }} - {{ formatCurrency(car.price) }} - - Home page - - - - - - diff --git a/examples/with-apollo/pages/index.vue b/examples/with-apollo/pages/index.vue deleted file mode 100644 index b8c6a7d7df..0000000000 --- a/examples/with-apollo/pages/index.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - Cars - - - - {{ car.year }} {{ car.make }} {{ car.model }} - - - - - - - - - diff --git a/examples/with-apollo/plugins/apollo.js b/examples/with-apollo/plugins/apollo.js deleted file mode 100644 index f328ff1fc7..0000000000 --- a/examples/with-apollo/plugins/apollo.js +++ /dev/null @@ -1,15 +0,0 @@ -import Vue from 'vue' -import { ApolloClient, createNetworkInterface } from 'apollo-client' -import 'isomorphic-fetch' - -// Created with Graphcool - https://www.graph.cool/ -const API_ENDPOINT = 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu' - -const apolloClient = new ApolloClient({ - networkInterface: createNetworkInterface({ - uri: API_ENDPOINT, - transportBatching: true - }) -}) - -export default apolloClient
{{ formatCurrency(car.price) }}
Home page