Commit 6e2a998d authored by Evan You's avatar Evan You

tweak

parent faf3c62b
# vue-hackernews-2.0
> A Vue.js project
> HackerNews clone built with Vue 2.0
## Build Setup
......@@ -14,5 +14,3 @@ npm run dev
# build for production with minification
npm run build
```
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
......@@ -95,6 +95,7 @@ app.get('*', (req, res) => {
})
})
app.listen(3000, () => {
console.log('ready at localhost:3000')
const port = process.env.PORT || 8080
app.listen(port, () => {
console.log(`server started at localhost:${port}`)
})
......@@ -12,6 +12,7 @@
<script>
export default {
name: 'app',
data () {
return {
msg: 'Hello Vue 2.0!'
......
......@@ -4,3 +4,9 @@
<p>hohoho</p>
</div>
</template>
<script>
export default {
name: 'about'
}
</script>
......@@ -4,3 +4,9 @@
<p>hihihi</p>
</div>
</template>
<script>
export default {
name: 'news'
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment