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 {

};