Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 757 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 757 Bytes

real-world-nuxt

My superb Nuxt.js project

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# serve with hot reload using a specific port
$ PORT=3001 npm run dev

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate

For detailed explanation on how things work, checkout Nuxt.js docs.

Setting Up a Mock API

# install json-server
$ npm install -g json-server

# Run the API server
$ json-server --watch db.json

# Run the API server wth 2 seconds delay
$ json-server --watch db.json --delay 2000

Extras

Add "Material Icon Theme" extension for good looking icons in VS Code