This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install Docker on Ubuntu 20.04 | |
| ### Update dependencies | |
| ```bash | |
| sudo apt update | |
| ``` | |
| ### install a few prerequisite packages which let apt use packages over HTTPS: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Step 1: Install snapd: | |
| - sudo apt install snapd | |
| Step 2: Ensure you have the latest snapd version installed: | |
| - sudo snap install core; sudo snap refresh core | |
| Step 3: Install Certbot with snapd: | |
| - sudo snap install --classic certbot | |
| Step 4: Create a symlink to ensure Certbot runs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #------------------------------------------------------------------------------ | |
| # Copyright 2019 Robert Cowart | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async findAll(data: any) { | |
| const { page, startIndex, limit, search } = data; | |
| const regex = new RegExp(search, 'i'); | |
| const results: any = {}; | |
| if (startIndex > 1) { | |
| results.previous = page - 1; | |
| } |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user