sudo su - postgres
psql
CREATE USER deploy PASSWORD 'deploy';
ALTER USER deploy CREATEDB;
connect Database psql dbname user;
sudo su - postgres
psql
CREATE USER deploy PASSWORD 'deploy';
ALTER USER deploy CREATEDB;
connect Database psql dbname user;
If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:
$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent www.website.org/tutorials/html/
This command downloads the website www.website.org/tutorials/html/.
The options are:
--recursive: download the entire website--domains website.org: don't follow links outside website.org| // Get all users | |
| var url = "http://localhost:8080/api/v1/users"; | |
| var xhr = new XMLHttpRequest() | |
| xhr.open('GET', url, true) | |
| xhr.onload = function () { | |
| var users = JSON.parse(xhr.responseText); | |
| if (xhr.readyState == 4 && xhr.status == "200") { | |
| console.table(users); | |
| } else { | |
| console.error(users); |