The default URL for JSON Server is http://localhost:3000
, but you can set this and more inside of json-server.json
.
Axios can take certain configurations as default. Go to main.js
to set accordingly.
In this case axios.defaults.baseURL
is set to the default URL of JSON Server to prevent having to write the whole URL for each API request.
npm install
npm run serve
npm run build
npm run test
npm run lint