You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE ROLE {datebase_username} WITH LOGIN CREATEDB ENCRYPTED PASSWORD '{database_user_password}';
CREATE DATABASE {database_name};
GRANT ALL PRIVILEGES ON DATABASE {database_name} to {database_username};
\q
su {database_username}
psql -d {database_name}
CREATETABLEtesttable(
ID INTPRIMARY KEYNOT NULL,
NAME TEXTNOT NULL
);
\d
psql "postgres://{database_username}:{database_user_password}@localhost/{database_name}"
Thanks for this contribution @davihar! I've edited the text of your issue to improve formatting, but I don't fully understand the very beginning of this:
What is Launchpad Terminal - are those things you need to press in a GUI? Are they command line utilities? Where do you find them? I have zero familiarity with Azure.
I think with a little more work this could be an excellent guide in the docs, are you interested in helping it reach this goal?
Feature description
Document how to run in Azure on a VM.
Motivating example
I wanted to host in Azure and followed the steps below.
Steps that enabled me to host in an Azure VM:
Using Graphile over PostgreSQL 12
Created Ubuntu 20.04 Gen1 VM in Azure using static IP address
Connect using OSX Terminal SSH command
Launchpad
Terminal
Create database user
Install PostgreSQL
Note: connection strings require URL encoding.
Steps above were adapted from https://tecadmin.net/install-postgresql-server-on-ubuntu/
PostgreSQL Adding GUID (UUID) Support:
Steps above were adapted from https://www.postgresqltutorial.com/postgresql-uuid/#:~:text=The%20Basics%20Of%20PostgreSQL%20UUID,table%20with%20UUID%20column.
Install NPM
Install Yarn
Install PostGraphile
Install Optional Plugins
Start Graphile with:
npx postgraphile \ --subscriptions \ --watch \ --dynamic-json \ --no-setof-functions-contain-nulls \ --no-ignore-rbac \ --no-ignore-indexes \ --show-error-stack=json \ --extended-errors hint,detail,errcode \ --append-plugins @graphile-contrib/pg-simplify-inflector \ --export-schema-graphql schema.graphql \ --graphiql "/graphiql" \ --enhance-graphiql \ --allow-explain \ --enable-query-batching \ --legacy-relations omit \ --connection postgres://{database_username}:{database_user_password}@localhost/{database_name} \ --owner-connection postgres://postgres:{postgress_password}@localhost/{database_name} \ --schema public \ --host 0.0.0.0
Documentation: CLI Usage: https://www.graphile.org/postgraphile/usage-cli/
Note: By default only localhost works but the --host 0.0.0.0 argument enables access from outside the server.
Note: sudo tcpdump port 5000 can be used to debug network issues to determine if traffic is hitting the server.
Verify Server is Working:
Disconnect Graphile execution from SSH window:
The text was updated successfully, but these errors were encountered: