Where to find swagger.json for Contenta CMS - npm

Hello I have installed Contenta CMS from here: https://github.com/contentacms/contenta_jsonapi along with the contentajs package from here: https://github.com/contentacms/contentajs I would like to access the api through swagger. I have used npm install http-server and downloaded swagger which shows me the default petstore app at http://localhost:8080. How do I change the swagger output to the Contenta app? The contenta cms is installed in http://mycontenta.com on my local machine

Related

Hubspot Call provider integration

I'm trying to develop a Hubspot's Click to Call app to use by my PBX.
I've already studied the Calling Extension SDK guide and made a simple poc that works into my localhost by npm (npm start).
Now I'm trying to move into production test evinroment so, into remote server, I've basic copyed the project files and binded it by Hubspot App registration.
Unfortunatelly, when I run the app on my Hubspot TestAccount, I see (in the browser console) that it requires a "./bin/index_combined.js" file. It isn't into my npm directory and npm compiles it for me only when I run "npm start" command...(local scenario).
So how to use my Click2Call app by remote without npm ? or how to produce an index_combined.js good for remote scenario?

How to use any npm package via a cdn

I am working on a vue app using a cdn. I do not have direct access to node.js and npm. Therefore, I am using a cdn for everything I have used so far or created my own components. I am trying to use vue-pdf to embed and render pdfs directly in my application however there is no vue-pdf cdn to use directly in my application. Therefore, is there some universal method to convert these npm packages available for download and convert to a cdn or hosted locally in my public js folder of my site?
https://www.npmjs.com/package/vue-pdf

Netlify not displaying my website as it should / not seeing the packages used in node_modules folder

I built a website using npm and in it I used swiperJS installed through npm. It works fine on local development environment but when I deployed to netlify, it does not display as it should where I used the package. Thank you.

OpenShift application for web app with minified static files (npm run build)

I'm currently developing a web application composed of:
api: an API built with Flask in Python
app: a web app built with vue-cli (based on webpack), and minified with npm run build
I've successfully built the api with an OpenShift Python S2I (source-to-image) image: python-36-rhel7.
I'd like to be able to automatically build the static web app from source and serve it through Nginx or Apache, in a separate app from the same project.
It should:
download the app source from the git repo (context-dir=/app/)
install npm
build it with npm install and npm run build
serve the built html+js+css files
There exist a node.js S2I image but it seems to be more suited for Express.js apps.
What would be the best way to build and serve a minified static web app on OpenShift?

How to setup Angular CLI project to compile Typescript for Express server

I created an Angular CLI project and followed the excellent MEAN App with Angular 2 and the Angular CLI tutorial to set up an Express server. However the instructions only lay down JavaScript files for the server.
Is there a standard way to alter the Angular CLI configuration to build the server source from Typescript files?