MDB GO Getting Started - npm libraries

MDB GO Getting Started - npm libraries

This guide will take you step by step on how to create your project and deploy using MDB CLI.


MDB GO allows you to use and deploy any npm package like:

Initialize

In order to initialize npm project use the following command:

$ mdb blank init

Enter project location

Install any npm package you want to use, i.e. express

$ npm install express --save

Open project in editor (i.e. VS Code), create index.js and code your app. Once it's ready you can publish it now:

Publish

Once you finish building your project, use the following command to deploy it:

$ mdb backend publish -p node12

Done! Your project will be ready. If you want to check project console use mdb logs command.

Video tutorial: