Metronic Documentation | Keenthemes
logo
The World’s #1 Bootstrap 5 HTML, VueJS, React, Angular & Laravel
Admin Dashboard Ecosystem

This is Metronic 7 documentation!

Upon purchase you can get Metronic 7 version from our Github Repository.
Request Github access
The new Metronic 8 is now available with the most advanced Bootstrap 5, VueJS, React and Laravel foundation with a solid light and dark mode design system, extensive utility classes and custom made in-house components.
View Metronic 8 documentation

To use most of the Metronic build tools, Node.js LTS version is required. Version 14.x LTS is recommended. Some of the plugins and framework in Metronic v7 does not support the latest Node.js version. https://nodejs.org/en/

Mock Back-end

Overview

We use axios-mock-adapter for demo purpose, it intercepts axios requests and redirects to mocked handlers.

For more info on the library: https://github.com/ctimmerm/axios-mock-adapter.

How switching to the Real REST API

Remove mock initialization in the src/index.js file:


/**
 * Website public url.
 *
 * @see https://facebook.github.io/create-react-app/docs/using-the-public-folder
 */
const { PUBLIC_URL } = process.env;
-/**
- * Mock API, use return `mock` variable to add new mocks.
- *
- * @see https://github.com/ctimmerm/axios-mock-adapter
- */
-/* const mock = */_redux.mockAxios(axios);

/**
 * Inject metronic interceptors for axios.

Setup your real API URL in the .env file and restart your application.

Think About The Future, Stay Connected With Us
The More We Learn, The More We Are Able To Innovate & To Develop