This project uses json-server
to create a mock REST API and Axios in a Vue.js application to interact with this API. This document explains how to set up json-server
, configure it with db.json
, and use Axios to make HTTP requests from your Vue.js application.
First, make sure you have json-server
installed globally. You can install it using npm:
npm install -g json-server