This guide will take you step by step on how to create your project and deploy using MDB CLI.
In order to initialize project we will use Angular CLI, for more option check documentation.
ng new my-angular-app
cd my-angular-app
npm start
ng
tool will ask you
following questions:
Now it's time to build your App. Once you are done we can move to deployment.
Once you finish building your project, use the following command to deploy it:
$ mdb frontend publish
Note: Since frontend
is a
default value for publish
command, you can run
just mdb publish
(instead of
mdb frontend publish
)
If you are publishing for the first time, CLI will ask you whether you want to use npm or yarn.
Once you successfully publish your project they will be stored for a future.
Once project is deployed you will see following message in a console:
Success Project built successfully
Sent 1.011 Mb
Your application is available at https://my-angular-app.mdbgo.io