Skip to content

Commit

Permalink
Removed buttercms
Browse files Browse the repository at this point in the history
  • Loading branch information
Braga Lund committed Nov 11, 2021
1 parent 51ddee1 commit 58d9147
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 30 deletions.
26 changes: 1 addition & 25 deletions frontend/braggalot/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,11 @@
</template>

<script>
import {butter} from '@/buttercms'
export default {
name: 'HelloWorld',
props: {
msg: String
},
methods: {
fetchHeadline() {
butter.content.retrieve(['homepage_headline'])
.then((res) => {
console.log('Headline from ButterCMS')
console.log(res)
})
},
fetchPosts() {
butter.post.list({
page: 1,
page_size: 10
})
.then((res) => {
console.log('Content from ButterCMS')
console.log(res)
})
}
},
created() {
this.fetchHeadline()
this.fetchPosts()
}
}
}
</script>

Expand Down
6 changes: 1 addition & 5 deletions frontend/braggalot/vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
module.exports= {
buttercms: {
proxy: 'https://api.buttercms.com/',
}
}
{}
10 changes: 10 additions & 0 deletions frontend/build_and_run_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

echo "Starting to build..."

docker build -t vuejs/dockerize-vuejs-app .

echo "Starting to run..."

docker run -it -p 8080:80 --rm vuejs/dockerize-vuejs-app

0 comments on commit 58d9147

Please sign in to comment.