Create and serve a twitter like application with vue.js and golang PART 9: Store authentication token with indexedDB

This is the ninth part of this serie. Check here all the parts:

In this lesson we’ll change the authentication setup on the client layer so that the access login and logout won’t be lost closing the browser. This will be a little short one, you can find the code, that will upgrade only the frontend, here.

Saving authentication data to the client

After last lesson the…


Create and serve a twitter like application with vue.js and golang PART 8: Token based authentication

This is the eighth part of this serie. Check here all the parts:

In this lesson we’ll add an authentication layer in both the client vue application and in the go server. As a plus, we will also add the endpoint to get a single user, that will be used for the “user” page in the vue page.

We will…


Create and serve a twitter like application with vue.js and golang PART 7: Connection with GOLANG server

This is the seventh part of this serie. Check here all the parts:

In this lesson our simple application is starting to finally talk with our golang backend server, we will start writing logic on both frontend for communication and backend to data storage the posts data.

We will update both the frontend and the backend in this session, you can…


Create and serve a twitter like application with vue.js and golang PART 6: Forms and data in VUEX

This is the sixth part of this serie. Check here all the parts:

In this chapter we are going to finally create some forms so we can use the store previously created and insert/update there some data. Note that at the end of this part we’ll have an application that have a client side in-memory storage, where we can add and…


Create and serve a twitter like application with vue.js and golang PART 5: VUEX finalization

This is the fifth part of this serie. Check here all the parts:

In this lesson we are going to update the vuex store, we will have a better logic to maintain the authentication of the user. Then we will update the application to use the vuex store we have created

Main target here is to update the frontend project, you…


Create and serve a twitter like application with vue.js and golang PART 4: VUEX first setup

This is the fourth part of this serie. Check here all the parts:

In this lesson we are going to add vuex, a centralized data store. This will give us the possibility to get and put data from there from all over the application.

Main target here is to update the frontend project, you can find the code here.

What is vuex?

Before actually start…


Create and serve a twitter like application with vue.js and golang PART 3: COMPONENTS & SLOTS

This is the third part of this serie. Check here all the parts:

In this lesson we are going to add some frontend functionalities, and by doing this we’ll learn a little more about using components and how to extend them with slots.

Main target here is to update the frontend project, you can find the code here.

Reusing components for posts

In the last…


Create and serve a twitter like application with vue.js and golang PART 2: GETTING STARTED WITH VUE

This is the second part of this serie. Check here all the parts:

In this lesson we are going to remove most of the code automatically created by the vue CLI, and add a little of our own.

Main target here is to update the frontend project, you can find the code here.

The project structure

Before going on with coding and stuff, let’s…


Create and serve a twitter like application with vue.js and golang PART 1: SETUP

In this serie of articles I want to write down a little tutorial about using vue.js as frontend and go as backend as a choice for a website/web application. This couple seems not to be very popular, but let’s think about this: Go is actually a very fast backend language, built by google to be both fast and easy to use and Vue is a javascript framework that takes the fast rendering of a page a point of main importance.

Said this I think that using them together is gonna be really nice, and let us create applications that could…

Ivano Dalmasso

Always looking to learn new things, and loving see things work as I want

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store