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
99f38a57
Unverified
Commit
99f38a57
authored
Jun 04, 2019
by
Sébastien Chopin
Committed by
GitHub
Jun 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
e21f0a50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
README.md
README.md
+15
-5
No files found.
README.md
View file @
99f38a57
...
@@ -13,8 +13,13 @@ HackerNews clone built with Nuxt.js.
...
@@ -13,8 +13,13 @@ HackerNews clone built with Nuxt.js.
## Modes
## Modes
-
Universal: https://hn.nuxtjs.org
-
Universal: https://hn.nuxtjs.org
> Hosted on [Now 2](https://zeit.co): `npm run build` + `now.json`
-
Single Page: https://hn-spa.nuxtjs.org
-
Single Page: https://hn-spa.nuxtjs.org
> Hosted on [Netlify](https://www.netlify.com): `npm run build-spa` + `dist/` directory
## Performance
## Performance
-
Lighthouse
[
100/100
](
https://cdn.rawgit.com/Atinux/e2f424e6794babc00d2158406b0ab37d/raw/4de834145881697ea83292b381df5f591f1ed2f5/lighthouse-result-nuxt.html
)
-
[
Webpagetest
](
https://www.webpagetest.org/lighthouse.php?test=170620_PG_a2a9feaf4ace07a61b2c6c2a171b1c79&run=1
)
-
Lighthouse
[
100/100
](
https://cdn.rawgit.com/Atinux/e2f424e6794babc00d2158406b0ab37d/raw/4de834145881697ea83292b381df5f591f1ed2f5/lighthouse-result-nuxt.html
)
-
[
Webpagetest
](
https://www.webpagetest.org/lighthouse.php?test=170620_PG_a2a9feaf4ace07a61b2c6c2a171b1c79&run=1
)
...
@@ -23,13 +28,13 @@ HackerNews clone built with Nuxt.js.
...
@@ -23,13 +28,13 @@ HackerNews clone built with Nuxt.js.
## Features
## Features
-
Server Side Rendering
& Caching
-
Server Side Rendering
-
Code Splitting
-
Code Splitting
-
Single-file Vue Components
-
Single-file Vue Components
-
Real-time List Updates with FLIP Animation
-
Real-time List Updates with FLIP Animation
-
Prefetch/Preload JS + DNS + Data
-
Prefetch/Preload JS + DNS + Data
-
Critical Path CSS
-
Critical Path CSS
-
PWA experience using
[
PWA Module
](
https://
github.com/nuxt-community/pwa-module
)
with almost _zero config_
-
PWA experience using
[
PWA Module
](
https://
pwa.nuxtjs.org
)
with almost _zero config_
-
PRPL
-
PRPL
-
Hot reloading dev environment integrated with
[
ESLint
](
https://eslint.org/
)
and
[
Prettier
](
https://prettier.io/
)
-
Hot reloading dev environment integrated with
[
ESLint
](
https://eslint.org/
)
and
[
Prettier
](
https://prettier.io/
)
-
Hosted on
[
Now 2
](
https://zeit.co/
)
-
Hosted on
[
Now 2
](
https://zeit.co/
)
...
@@ -45,18 +50,23 @@ npm install # or yarn
...
@@ -45,18 +50,23 @@ npm install # or yarn
# serve in dev mode, with hot reload at localhost:3000
# serve in dev mode, with hot reload at localhost:3000
npm run dev
npm run dev
# build for production
# build for production
(universal)
npm run build
npm run build
# serve in production mode
# serve in production mode
(universal)
npm start
npm start
# build for production (spa)
npm run build-spa
# serve in production mode (spa)
npm run start-spa
# or upload dist/ directory
# validate code with ESLint (with Prettier)
# validate code with ESLint (with Prettier)
npm run lint
npm run lint
# validate andf fix with ESLint (with Prettier)
# validate andf fix with ESLint (with Prettier)
npm run lintfix
npm run lintfix
```
```
## Links
## Links
...
...
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