Installation Guide

web
mobile

Installation guide


Manual installation (zip package)

Step 1: Download MDB Free or MDB Pro package.

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!


NPM installation

Step 1: Create new folder for your project and install MDB Free:

mkdir myapp
cd myapp
npm i mdbootstrap

Step 2: Open the project in the code editor.

Step 3: Create index.html file.

Step 4: import styles inside <head></head> section:


            <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
            <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
            <link rel="stylesheet" href="node_modules/mdbootstrap/css/bootstrap.min.css">
            <link rel="stylesheet" href="node_modules/mdbootstrap/css/mdb.min.css">
            <link rel="stylesheet" href="node_modules/mdbootstrap/css/style.css">
          

Step 5: Inside <body></body> section import JavaScript:


            <script type="text/javascript" src="node_modules/mdbootstrap/js/jquery.min.js"></script>
            <script type="text/javascript" src="node_modules/mdbootstrap/js/popper.min.js"></script>
            <script type="text/javascript" src="node_modules/mdbootstrap/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="node_modules/mdbootstrap/js/mdb.min.js"></script>
          

Step 6: Open index.html on your web browser.

Step 1: Create new folder for your project and install MDB Free:

mkdir myapp
cd myapp
npm i mdbootstrap

Step 2: Open the project in the code editor.

Step 3: Generate new GitLab token (see token generation section).

Step 4: Use generated token to install MDB Pro package:

npm install git+https://oauth2:YOUR_TOKEN_GOES_HERE@git.mdbootstrap.com/mdb/jquery/jq-pro.git --save

Step 5: Create index.html file.

Step 6: Import styles inside <head></head> section:


            <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
            <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
            <link rel="stylesheet" href="node_modules/mdbootstrap/css/bootstrap.min.css">
            <link rel="stylesheet" href="node_modules/mdbootstrap/css/mdb.min.css">
            <link rel="stylesheet" href="node_modules/mdbootstrap/css/style.css">
          

Step 7: Inside <body></body> section import JavaScript:


            <script type="text/javascript" src="node_modules/mdbootstrap/js/jquery.min.js"></script>
            <script type="text/javascript" src="node_modules/mdbootstrap/js/popper.min.js"></script>
            <script type="text/javascript" src="node_modules/mdbootstrap/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="node_modules/mdbootstrap/js/mdb.min.js"></script>
          

Step 8: Open index.html on your web browser.


CDN installation

If you are looking for MDB Free and prefer use CDN than install or download package feel free to visit: https://mdbootstrap.com/md-bootstrap-cdn


Token generation

Step 1:  Visit https://git.mdbootstrap.com and log in. If you are PRO user and do not have an account yet, please request one contacting us: contact@mdbootstrap.com

Step 2:  From top right corner click at your avatar and choose "Setting → Access Tokens."

Step 3:  Provide a Name for your token and choose "api" from scopes. Then click "Create personal access token"
add token


Step 4:  Once your token will be generated make sure to copy it and store in safe place. You won't be able to access it again. In case of lose, you will have to generate new token again.
token


Plugin installation

Step 1: Import plugin styles inside <head></head> section (after the mdb.css styles):


            <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
            <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
            <link rel="stylesheet" href="css/bootstrap.min.css">
            <link rel="stylesheet" href="css/mdb.min.css">
            <!-- Plugin file -->
            <link rel="stylesheet" href="./css/addons/datatables.min.css">
            <link rel="stylesheet" href="css/style.css">
          

Step 2: Before closing <body></body> tag import JavaScript file:


            <script type="text/javascript" src="js/jquery.min.js"></script>
            <script type="text/javascript" src="js/popper.min.js"></script>
            <script type="text/javascript" src="js/bootstrap.min.js"></script>
            <script type="text/javascript" src="js/mdb.min.js"></script>
            <!-- Plugin file -->
            <script src="./js/addons/datatables.min.js"></script>
          

Step 3: Initialize (if required) component inside custom <script></script> tags.


            <script>
              $(document).ready(function () {
                $('#dtBasicExample').DataTable();
                $('.dataTables_length').addClass('bs-select');
              });
            </script>
          

Step 1: Import plugin styles inside <head></head> section (after the mdb.css styles):


            <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
            <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
            <link rel="stylesheet" href="css/bootstrap.min.css">
            <link rel="stylesheet" href="css/mdb.min.css">
            <!-- Plugin file -->
            <link rel="stylesheet" href="./css/addons-pro/multi-range.min.css">
            <link rel="stylesheet" href="css/style.css">
          

Step 2: Before closing <body></body> tag import JavaScript file:


            <script type="text/javascript" src="js/jquery.min.js"></script>
            <script type="text/javascript" src="js/popper.min.js"></script>
            <script type="text/javascript" src="js/bootstrap.min.js"></script>
            <script type="text/javascript" src="js/mdb.min.js"></script>
            <!-- Plugin file -->
            <script src="./js/addons-pro/multi-range.min.js"></script>
          

Step 3: Initialize (if required) component inside custom <script></script> tags.


            <script>
              $(document).ready(function () {
                $('#multi').mdbRange({
                  single: {
                    active: true,
                    multi: {
                      active: true,
                      rangeLength: 1
                    },
                  }
                });
              });
            </script>
          

Step 1: Visit MDB site and choose premium plugin.

Step 2: Buy product you are interested in.

Step 3: From top right corner click at your avatar and choose "Orders".

Step 4: Download plugin package.

Step 5: Unzip downloaded file and copy them into your project directory.

Step 6: Import plugin styles inside <head></head> section (after the mdb.css styles).


            <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
            <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
            <link rel="stylesheet" href="css/bootstrap.min.css">
            <link rel="stylesheet" href="css/mdb.min.css">
            <!-- Plugin file -->
            <link rel="stylesheet" href="./css/mdb-carousel-3d.min.css">
            <link rel="stylesheet" href="css/style.css">
          

Step 7: Before closing <body></body> tag import JavaScript file:


            <script type="text/javascript" src="js/jquery.min.js"></script>
            <script type="text/javascript" src="js/popper.min.js"></script>
            <script type="text/javascript" src="js/bootstrap.min.js"></script>
            <script type="text/javascript" src="js/mdb.min.js"></script>
            <!-- Plugin file -->
            <script src="./js/mdb-carousel-3d.min.js"></script>
          

Step 8: Initialize (if required) component inside custom <script></script> tags.


            <script>
              $(document).ready(function () {
                $('.carousel-3d-basic').mdbCarousel3d();
              });
            </script>
          


Installation guide for the specific plugin is available in the plugin documentation.

List of all plugins can be found in the plugins and addons section.

$('.btn-copy-code').css('right', 0)