CouchDB is a NoSQL database for storing JSON documents. It comes with a REST API out of the box so your client applications can persist data while requiring you to write little or no server-side code. CouchDB's killer feature is its ability to easily replicate, which allows for horizontal scaling, easy backup, and for client adapters to synchronize documents. This is perfect if you want to write an application that is offline-first. It's become my go-to database when creating new
Let's install Docker and set it to be from their repository instead of Ubuntu (which comes by default). Also, let's disable root mode in order to run Docker.
sudo apt install apt-transport-https ca-certificates curl 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 bionic test" && sudo apt update && sudo apt install docker-ce
To save money and not run each instance of CouchDB by servers, let's create instances for each project. And define and admin & password (since CouchDB doesn't)
In this guide you can find how to resolve the following issues.
- request a new certificate
- set up Nginx to enable your certificate
- check SSL configuration rating on your HTTPS site
- renew a certificate
Feel free to ask any questions in the comments section below.
<style> | |
.animate-if { | |
background:white; | |
border:1px solid black; | |
padding:10px; | |
} | |
.animate-if.ng-enter, .animate-if.ng-leave { | |
transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s; | |
} |
String.prototype.deleteWord = function (searchTerm) { | |
var str = this; | |
var n = str.search(searchTerm); | |
while (str.search(searchTerm) > -1) { | |
n = str.search(searchTerm); | |
str = str.substring(0, n) + str.substring(n + searchTerm.length, str.length); | |
} | |
return str; | |
} |
import { Injectable } from "@angular/core"; | |
import * as application from 'application'; | |
let TnsOneSignal = require('nativescript-onesignal').TnsOneSignal; | |
@Injectable() | |
export class NotificationService { | |
constructor() {} |