title: vuejs frontend development without backend: how to write fixtures?
body: <p>We are building an application where the backend is completely separated from the frontend. Communication will happen through a rest-api, specific endpoints, json etc.</p>
  
  <p>The frontend is developed with vue-cli as a SPA vue.js app (with vuex and vue-router), the backend is a Rails 5 API-only app.</p>
  
  <p>Development of frontend and backend will be done in parallel by different teams, both respecting the same API.</p>
  
  <p>My questions is: How can the frontend team develop the frontend without data from the backend? For example to display a user profile, they'd need the respective JSON for that user from the backend. But since the backend is not finished, the endpoint to request data is not working yet.</p>
  
  <p>Should they create fixtures in the frontend app (e.g. a "sample-user.json") and use this while developing? What is best practice for such a scenario, so that developing the frontend does not depend on the backend to be available and to deliver data?</p>