Topic: How to publish free template?

BenjaminNWofford free asked 4 years ago


Expected behavior I'm trying to publish the template found here https://mdbootstrap.com/freebies/jquery/portfolio/

I don't see anything in the documentation that specifically addresses how to publish the templates.

Actual behavior

so far, I've downloaded the zip folder and extracted it to my desktop. After that, I have opened up the project in Visual Studio. I've tried doing mdb init but it creates a whole new project nested inside of the template. I've also tried doing a mdb publish, but then it wants me to create a package.json file. So, I select the yes option that it gives me to create one. I go through the prompts and assign the package a name of bensportfolio when it asks me what I want to name the package. After that it tries to publish the file, but fails with 'Missing package.json file.' So I run the mdb publish command again and get this error message

Problem with reading project metadata:
Error: ENOENT: no such file or directory, open '/home/benjamin/Desktop/Portfolio-                                Template-Bootstrap-master/.mdb'
TypeError: Cannot read property 'packageName' of undefined
 at PublishHandler._callee$ (/usr/lib/node_modules/mdb-cli/utils/publish-handler.js:100:52)
at tryCatch (/usr/lib/node_modules/mdb-cli/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (/usr/lib/node_modules/mdb-cli/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (/usr/lib/node_modules/mdb-cli/node_modules/regenerator-runtime/runtime.js:117:21)
at asyncGeneratorStep (/usr/lib/node_modules/mdb-cli/utils/publish-handler.js:11:103)
at _next (/usr/lib/node_modules/mdb-cli/utils/publish-handler.js:13:194)

Resources (screenshots, code snippets etc.)


Grzegorz Bujański staff commented 4 years ago

Hi,

mdb init and mdb publish? You mean npm init and npm publish, right? We don't offer any hosting to publish this template in the web.

Best, Grzegorz


mbolters free commented 4 years ago

How are you supposed to use the template if you can't publish it?


Grzegorz Bujański staff commented 4 years ago

You can publish it. but you have to choose a hosting provider and publish your website there.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.12.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Ubuntu 18.04 LTS
  • Provided sample code: No
  • Provided link: Yes