Exploring Vuex
Vuex, is a state management library for Vue.js applications. In this specific script "store.js", a Vuex store is being created.
Directory
Explanation
// Importing the createStore function from the Vuex library
import { createStore } from 'vuex';// Creating a Vuex store instance
const store = createStore({
// State object contains the application's state
state: {
// < LOCAL
domainBackend: "http://127.0.0.1:8000",
domainFrontend: "http://localhost:8082",
// > LOCAL
// < LIVE
// domainBackend: "https://mapmama.com",
// domainFrontend: "https://mapmama.com",
// > LIVE
},
});Last updated