Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周韬
node-sample
Commits
6e2a998d
Commit
6e2a998d
authored
Aug 04, 2016
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
parent
faf3c62b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
5 deletions
+17
-5
README.md
README.md
+1
-3
server.js
server.js
+3
-2
App.vue
src/App.vue
+1
-0
About.vue
src/views/About.vue
+6
-0
News.vue
src/views/News.vue
+6
-0
No files found.
README.md
View file @
6e2a998d
# 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
)
.
server.js
View file @
6e2a998d
...
...
@@ -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
}
`
)
})
src/App.vue
View file @
6e2a998d
...
...
@@ -12,6 +12,7 @@
<
script
>
export
default
{
name
:
'app'
,
data
()
{
return
{
msg
:
'Hello Vue 2.0!'
...
...
src/views/About.vue
View file @
6e2a998d
...
...
@@ -4,3 +4,9 @@
<p>
hohoho
</p>
</div>
</
template
>
<
script
>
export
default
{
name
:
'about'
}
</
script
>
src/views/News.vue
View file @
6e2a998d
...
...
@@ -4,3 +4,9 @@
<p>
hihihi
</p>
</div>
</
template
>
<
script
>
export
default
{
name
:
'news'
}
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment