Setting up router and vuex in Vue

Question:

How do i setup up vue-router and vuex in my Vue project on replit?
I have installed the packages for both but can’t get it to work.

Is there a manual available for setting this up?

Thanks