Frontend State Management with Vue and Vuex : Setting up Vuex store to manage Currency data from the API - An Exercise

Setting up Vuex store to manage Currency data from the API - An Exercise

Now that, we've set up two modules. We leave the next module for the Currency data as an exercise to complete.  We leave here a skeleton of the file and leave the content to the user to file. Feel free to check out the git repo for this course when you run into difficulties.

// appConstants.js file
export const CURRENCY_API_URL_ENDPOINT = "http://localhost:3000/api/currency/";
// mutation-types.js 

export const GET_CURRENCY_DATA = 'GET_CURRENCY_DATA';
export const GET_CURRENCY_DATA_SUCCESS = 'GET_CURRENCY_DATA_SUCCESS';
export const GET_CURRENCY_DATA_FAILURE = 'GET_CURRENCY_DATA_FAILURE';

 

import * as appConstant from "../../constants/appConstants";
import * as types from "../../constants/mutation-types";

const state = {
 
};

const actions = {
 
};

const getters = {
  
};

const mutations = {
 
};

export default {

};

course logo
Frontend State Management with Vue and Vuex
Number of sections:
15
Content length:
Delivery formats:

Instructor

F Yeboah
I am a Software / UI developer with interests in Search Intensive applications, Information Architectures(IA), UX/UI, FRP, and Reusable Frontend Components Design.... Show more