Learning VueJS 2.x

I. First project with node + vue

See more https://vuejs-templates.github.io/webpack/

II. Create fake json-server for develop

go to source folder

Install json-server

Create folder api in source folder

Create a

file

Start JSON Server

Now if you go to http://localhost:3000/posts/1, you’ll get

{ id: 1, title: json-server, author: typicode }

Add custom routes

Create a

file. Pay attention to start every route with

.

Start JSON Server with

option.

Now you can access resources using additional routes.

/api/posts # → /posts 
/api/posts/1  # → /posts/1 
/blog/posts/1/show # → /posts/1 
/blog/javascript # → /posts?category=javascript 

Continue reading Learning VueJS 2.x