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

tweak

parent faf3c62b
# vue-hackernews-2.0 # vue-hackernews-2.0
> A Vue.js project > HackerNews clone built with Vue 2.0
## Build Setup ## Build Setup
...@@ -14,5 +14,3 @@ npm run dev ...@@ -14,5 +14,3 @@ npm run dev
# build for production with minification # build for production with minification
npm run build 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) => { ...@@ -95,6 +95,7 @@ app.get('*', (req, res) => {
}) })
}) })
app.listen(3000, () => { const port = process.env.PORT || 8080
console.log('ready at localhost:3000') app.listen(port, () => {
console.log(`server started at localhost:${port}`)
}) })
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<script> <script>
export default { export default {
name: 'app',
data () { data () {
return { return {
msg: 'Hello Vue 2.0!' msg: 'Hello Vue 2.0!'
......
...@@ -4,3 +4,9 @@ ...@@ -4,3 +4,9 @@
<p>hohoho</p> <p>hohoho</p>
</div> </div>
</template> </template>
<script>
export default {
name: 'about'
}
</script>
...@@ -4,3 +4,9 @@ ...@@ -4,3 +4,9 @@
<p>hihihi</p> <p>hihihi</p>
</div> </div>
</template> </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