CMS
https://trends.builtwith.com/cms/Craft










$ vue create postcraftvue
$ vue add vuetify
$ vue add apollo
// apollo GraphQL
import gql from 'graphql-tag'
//
export const ALL_CUSTOMERS = gql`
query{
customers: entries( section:[news], type:[News]) {
id
title
slug
postDate
...on News{
c_textarea01
}
}
}
`
<script>
import {ALL_CUSTOMERS} from "../constants/test";
export default {
name: "CustomerTable",
data: () => ({
customers: [],
headers: [
{text: 'ID', value: 'id'},
{text: ' ', value: 'title'},
],
}),
apollo: {
customers: ALL_CUSTOMERS
}
}
</script>
<template>
<v-app>
<CustomerTable/>
</v-app>
</template>
<script>
import CustomerTable from './components/test'
export default {
name: 'App',
components: {
CustomerTable
},
}
</script>
import gql from 'graphql-tag'
export const CREATE_CUSTOMER = gql`
mutation createNewEntry($title:String, $c_textarea01:String) {
upsertNews(
title:$title,
c_textarea01:$c_textarea01,
){
id
title
slug
postDate
...on News{
c_textarea01
}
}
}
`
// git
$ git init
$ git add .
$ git commit -m "init for heroku"
//
$ heroku create hogehoge
// heroku deploy
$ git push heroku master
//
$ heroku open
$ yarn add @vue/cli-plugin-pwa —dev
$ git add .
$ git commit -m "add @vue/cli-plugin-pwa"
$ vue add pwa
$ git push heroku master
Vue.js, GraphQL Craft CMS
https://note.mersy418.com/article/vuejs-graphql-pwa-craftcms
https://craft.cloud/
+ $59/year
Pro
$299
Solo
Free
admin
+ $39/year
ECCommerce
$199-
Dev
Free
Pro 

※
Lite Pro
craftcms.docker
test-foo.example.jp
CMS::Lover::bitpart
Update bit part, everyday!!

PWA night vol.11 20191218