Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
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
Alex
next.js
Commits
d9ea4ce3
Commit
d9ea4ce3
authored
Oct 26, 2016
by
nkzawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme: fix the instruction of running next
parent
3d44b58d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
README.md
README.md
+11
-1
No files found.
README.md
View file @
d9ea4ce3
...
@@ -10,6 +10,16 @@ Install it:
...
@@ -10,6 +10,16 @@ Install it:
$ npm install next --save
$ npm install next --save
```
```
and add a script to your package.json like this:
```
json
{
"scripts"
:
{
"start"
:
"next"
}
}
```
After that, the file-system is the main API. Every
`.js`
file becomes a route that gets automatically processed and rendered.
After that, the file-system is the main API. Every
`.js`
file becomes a route that gets automatically processed and rendered.
Populate
`./pages/index.js`
inside your project:
Populate
`./pages/index.js`
inside your project:
...
@@ -21,7 +31,7 @@ export default () => (
...
@@ -21,7 +31,7 @@ export default () => (
)
)
```
```
and then just run
`n
ex
t`
and go to
`http://localhost:3000`
and then just run
`n
pm star
t`
and go to
`http://localhost:3000`
So far, we get:
So far, we get:
...
...
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