How to install openlayers on host (cpanel) - node.js

I need help, currently I have developed on my computer with node js and git a gis application using openlayers . Now I try to install it on hosting in cpanel but I can't. Please help me because I've been trying for several days and I can't. I couldn't find a complete tutorial on how to install openlayers. I mention that I am new in this field.
I created an app with nodeJS in Cpanel, after i installed GIT with repository. On openlayers website, i followed the steps with npm create ol-app my-app, cd my-app, npm start. After this all i see when i acces the webpage is tha message from NodeJS "It works! NodeJS 16.17.1".

Related

Could i install npm on cloud server?

Have cloud hosting on hetzner. Actually want to make laravel project. And i want to use laravel breeze and another packages and should install npm? I tried google it but i need your advice. please help me.
You can install all the packages on your local computer, then build your assets locally and ship the built assets to the server.
Whilst you can run npm run build on the server, you do not need to. You can do this locally then commit the built assets to your repository.

Sharepoint Workbench : This site can provide a secure connection

I've created a webpart.
I'm using a Node.js, with npm, Yeoman and Gulp.
I installed a certificate with gulp trust-dev-cert, and I have this error on my page "This site can provide a secure connection", and the app isn't accessible.
This is my package.json
My node version is 8.9.1.
I tried to change the NODE_NO_HTTP2=1 environment variable , like this tutorial , but it doesn't work.
Do you have any idea to resolve my certificate problem ?
Thank you very much
Not sure why it isn't working after NODE_NO_HTTP2=1 changes.
I would suggest that you uninstall the current Node.js installation and reinstall the Node.js with the previous LTS version.
The previous Node.js version is v 6.12.
You can download it and install it on your machine and then run the gulp commands.
Link - Node.js v6.12.0
As mentioned here, currently only Node v6 is supported in SPFx

Angular2 development Without node and npm

I am new angular2 development, and what i came to know is before starin the angular2 development, I must install the nodejs for server and npm to download dependencies from official documentation.
I succesfully deployed the source code in tomcat sever[by build]
So my Question is after installation and creating the new project, i got node_modules. By using these node_modules(can i start development of angular2 on another i.e a new machine where node & npm is not installed)
Basically my question is.. I want to start development of angular2 by using the project structure on new machine. Without the installation on node & npm
From Angular docs
Node.js and npm are essential to Angular development.
If you built/compiled the app and have all the modules installed (you have your node_modules) folder then its just javascript and html which you can run on any server you want.
For npm, if you need any modules/packages, I think you can manually download the package and add it to your development environment. But what if the process needs to be automated? You can't just sit there and download all the packages from github. So npm is really helpful when it come to this. You only need a file containing all dependencies, and run it at build time (package.json)
About nodejs, nodejs allows you to run javascript on the server when you need any interaction with the database. So why don't we just go with the easy way?

Apollo with Angular Quickstart : Unknown error

I am a complete newbie in web development, and I am completely lost.
I want to develop a web application with a backend developed with Django, and a frontend developed with Angular. I want the interaction between the backend and the frontend to be accomplished with Apollo and GraphQL.
Taking this into account, I started developing a couple of simple models in Django, and doing some queries with the Python package graphene. It seems to be working well, so now I tried to develop a simple Angular application that renders the instances of the Django created models.
And that is where I am stuck. I have downloaded the Angular Quickstart used in the Angular tutorial (https://github.com/angular/quickstart) to start testing Apollo. I have run the following commands in the terminal:
$ git clone https://github.com/angular/quickstart.git
$ cd quickstart
$ npm install
Furthermore, to install Apollo, I have run the following commands:
$ npm install whatwg-fetch apollo-client apollo-angular graphql-tag --save
Finally, to run the local server, I typed $ npm start in the terminal. And that is where the following error is raised:
node_modules/#types/isomorphic-fetch/index.d.ts(8,30): error TS2304: Cannot find name 'fetch'.
I am getting mad trying to solve this issue, and I have not found any documentation on this, maybe because I do not have an extensive background on web development.
I am using node v6.10.3, npm v3.10.10 and Ubuntu 16.04 LTS. Any advice or help to solve the problem would be appreciated, thanks.
you have a problem with typings, try installing #types/whatwg-fetch.
The release of #types/isomorphic-fetch you have installed (one of the deps of apollo-client) assumes that you have a declaration of window.fetch.
The ~2.3 version of TypeScript has that definition in dom library and I think this is why Apollo and #types/isomorphic-fetch decided to work this way.
There are two solutions:
Install #types/whatwg-fetch package (or different) or define fetch by yourself
Update TypeScript to 2.3.X (and have dom specified in compilerOptions.lib

how to add ember and ember cli to azure website or cload service for ember projects

I want to use Azure for my Ember project. my project uses Ember.js and ember-cli, I can not see it on azure same html websites. for angular.js project, I have added some script code in deploy.cmd. but i don't know what should i add to deploy.cmd to run ember.js and ember-cli . All samples in internet use some script in deploy.sh and I don't know about its syntax. can u help me please?
We at Microsoft actually wrote a small npm module to help you with that. You can find it at https://github.com/felixrieseberg/ember-cli-azure-deploy.
Short version: Run this in your project.
npm install --save-dev -g ember-cli-azure-deploy
azure-deploy init

Resources