egislook / youdeespot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YouDeeSpot

Resources

Progressive Web App and published it in 3 app stores
AWW
Customize Media Notifications and Handle Playlists
Reverse-engineering YouTube

/**
 * TODO!!!
 * 
 * Add this to pwajs server file to serve the files inside node_modules/@pwajs
 * app.use('/resources', express.static(process.cwd() + '/src/resources/'));
 * 
 * Add to src/server.js file to serve the static css
 * head.push(<link type="text/css" id="fucssStyle" rel="stylesheet" href="/resources/css/style.css" />)
 * 
 * Add to src/cleant.js to autoreload the file when its done with rerendering
 * document.querySelector('#fucssStyle').href = '/resources/css/style.css' + '?' + new Date().getTime();
 * 
 * Add to src/webpack.js fucss support
 * 
 * import { PwaFucssPlugin } from 'next-fucss';
 * 
 * and
 * 
 * addPlugin(new PwaFucssPlugin({
 *    styleFile: '/src/resources/css/style.css' 
 * }));
 * 
 */
 

PM2

npm install -g pm2
pm2 start ./dist/server.js
cd bin/serverless
pm2 start npm --- run start

Node

(https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04)

ngnix

(https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04)
(https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04)
(https://www.liaohuqiu.net/posts/nginx-proxy-pass/)

Example File: /bin/default

sudo nano /etc/nginx/sites-available/default
sudo systemctl reload nginx

Hasura

(https://docs.docker.com/compose/install/#install-compose)

Example File: /bin/docker-compose.yml

docker-compose up -d
docker-compose stop || docker-compose down

Setup Sever With Docker

sudo apt-get update
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ lsb_release -cs-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
wget https://raw.githubusercontent.com/hasura/graphql-engine/master/install-manifests/docker-compose/docker-compose.yaml
apt install docker-compose
docker-compose up -d

About

License:MIT License


Languages

Language:JavaScript 82.3%Language:CSS 13.8%Language:Shell 3.7%Language:Dockerfile 0.3%