Install a real-time presentation slide platform on your POWER web hosting plan

Wissensdatenbanken

Install a real-time presentation slide platform on your POWER web hosting plan


Icons/System/eye-open Created with Sketch. 54 Ansichten 04.02.2021 POWER Web Hosting

Objective

You've subscribed to a Web POWER web hosting plan to deploy Node.js applications, and you want to deploy a real-time presentation slide platform on it.

This guide will explain how to do it.

Find out how to install Slideshow on your POWER web hosting plan.

Requirements

If you have just started to use your Web POWER web hosting plan, we suggest to have a look at our Getting started with a POWER web hosting plan guide before going further.

Instructions

Let's suppose you have the default configuration for Node.js hosting:

  • Runtime: nodejs 14
  • Entrypoint: index.js
  • DocumentRoot: www

To verify your configuration, you can use the Retrieve active configuration API endpoint.

Connect via SSH to your POWER web hosting. Let's begin by retrieving the sources of the project:

rm -rf www
git clone https://github.com/nafeu/realtime-slides-tut.git www

Now let's go into the www folder, do an npm install and symlink the entrypoint to the application main file:

cd www
npm install --save
ln -fs server.js index.js

Then restart your instance and your slideshow platform will be online.

Slideshow

Terminal output:

 ~ $ rm -rf www

~ $ git clone https://github.com/nafeu/realtime-slides-tut.git www
Cloning into 'www'...
remote: Enumerating objects: 91, done.
remote: Total 91 (delta 0), reused 0 (delta 0), pack-reused 91
Extracting objects: 100% (91/91), done.

~ $ cd www

~/www $ npm install --save
npm WARN realtime-slides-tut@1.0.0 No repository field.
added 297 packages from 253 contributors and audited 297 packages in 6.689s
found 18 vulnerabilities (9 low, 3 moderate, 5 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

~/www $ ln -fs server.js index.js

~/www $ mkdir -p tmp

~/www $ touch tmp/restart.txt

Go further

Join our community of users on https://community.ovh.com/en/.

Join our Discord on our web-hosting-power channel to discuss directly with the team and other users of this lab.

Zugehörige Artikel