Manual installation (zip package)
Step 1
Download the package from orders
Step 2
Unzip downloaded package and open it in the code editor
Step 3
Explore our documentation (menu on the left). Choose components you like, copy it to your project and compose your website. And yes, it's that simple!
MDB CLI
CLI installation is the most efficient way to use MDB. It enables options such as:
- Free hosting (supports custom domains, SSL, FTP access)
- Install any MDB package with a single command
- Easy updates with a single command
- Backend starter templates (Laravel, plain PHP, node.js & more)
- WordPress setup in 3 minutes (blog, ecommerce or blank project)
- Git repository for you and your team
Step 1
To start using MDB GO / CLI install it with one command:
npm install -g mdb-cli
Step 2
Log into the CLI using your MDB account:
mdb register
command.
mdb login
Step 3
Initialize a project:
mdb frontend init mdb5-essential-standard
mdb frontend init mdb5-advanced-standard
Step 4
Install the dependencies (inside the project directory):
cd mdb5-essential-standard
npm install
cd mdb5-advanced-standard
npm install
Step 5
Run the app:
npm start
Step 6
Publish when you're ready:
mdb publish
NPM
Keep in mind that the Single Use license does not allow installation via gitlab link. The only option for this type of package is manual installation.
Prerequisites
Before starting a project make sure to install Node LTS (14.x.x recommended) and generate gitlab access token.
Installation
To install MDB UI KIT in your project easily type the following command in the terminal. Remember to swap the access token before starting the installation.
npm i git+https://oauth2:ACCESS_TOKEN@git.mdbootstrap.com/mdb/standard/mdb-ui-kit-pro-essential
npm i git+https://oauth2:ACCESS_TOKEN@git.mdbootstrap.com/mdb/standard/mdb-ui-kit-pro-advanced
Importing JS modules
You can import the entire library or just individual modules:
import { Input, initMDB } from 'mdb-ui-kit/js/mdb.es.min.js';
initMDB({ Input });
import * as mdb from 'mdb-ui-kit/js/mdb.umd.min.js';
window.mdb = mdb;
Importing CSS file
To import MDB stylesheet please use the following syntax:
@import '~mdb-ui-kit/css/mdb.min.css';
Install specific version
When you install MDB from our GitLab server, the latest version of the library will be downloaded by
default. You can add #version_number
at the end of the installation command in order to install
specific MDB version.
npm install git+https://oauth2:ACCESS_TOKEN@git.mdbootstrap.com/mdb/standard/mdb-ui-kit-pro-essential#3.8.1