marcodondo97 / PWA-greenpasschecker

PWA to scan the green pass QR code
http://greenpass.chickenkiller.com/
GNU General Public License v3.0
0 stars 0 forks source link

Install on web server #1

Closed mikeloomans closed 2 years ago

mikeloomans commented 2 years ago

Hi, are you willing to help me install this on my web server?

marcodondo97 commented 2 years ago

Hello, for this project I used an ubuntu server provided by GCP. Once you get the server you have to open port 80 and 443, afterwards you have to reserve a static public IP and then you can map the IP with your domain name. Eventually you have tu configure your node server running this commands:

sudo apt-get update sudo apt-get install nodejs

update Nodejs to version 14.16.1

sudo npm install -g n sudo n 14.16.1 node -v

create the project space

mkdir /var/www/ cd /var/www/

clone this repository into the new folder

install the necessary packages

npm install base45 cbor jpeg-js jsqr pako

Then you can run the application with command: node app.js

Before that you should create a ssl certificate in order to get https connection. To get it you should use Cloudflare.

marcodondo97 commented 2 years ago

Close for inactivity