This is a quick guide designed to help newbie developers to build VueJS SPA with authenticated API calls. We’ll start with building an API-first REST-ful Rails backend. API-first means that the same API endpoints can be used by different Web/JS clients, mobile applications, 3rd party APIs, and ideally all of them should use a unified auth flow and JWT is a good fit for this goal. While in this art
![Rails API + JWT auth + VueJS SPA](https://cdn-ak-scissors.b.st-hatena.com/image/square/d7c430df2ffc430831d28324b28d33eed7fcf2ca/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2ADPSoS719QyoT4IDYX6TTew.png)