Skip to content

Commit

Permalink
noop: replace subdomain links with subpath (hasura#3869)
Browse files Browse the repository at this point in the history
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
  • Loading branch information
praveenweb and rikinsk authored Feb 27, 2020
1 parent 85dae9b commit 865b150
Show file tree
Hide file tree
Showing 75 changed files with 389 additions and 384 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
Does this PR change Hasura Catalog version?
- [ ] No
- [ ] Yes
- [ ] Updated docs with SQL for downgrading the catalog <!-- https://docs.hasura.io/1.0/graphql/manual/deployment/downgrading.html#downgrading-across-catalogue-versions -->
- [ ] Updated docs with SQL for downgrading the catalog <!-- https://hasura.io/docs/1.0/graphql/manual/deployment/downgrading.html#downgrading-across-catalogue-versions -->

#### Metadata
<!-- Hasura metadata changes -->
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The contributing guide for docs can be found at [docs/CONTRIBUTING.md](docs/CONT

### Community content

Since we launched our [learn page](https://learn.hasura.io/), we are happy about contributions:
Since we launched our [learn page](https://hasura.io/learn/), we are happy about contributions:

- Fix errors in existing learn tutorials

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hasura GraphQL Engine

[![Docs](https://img.shields.io/badge/docs-v1.0-brightgreen.svg?style=flat)](https://docs.hasura.io)
[![Docs](https://img.shields.io/badge/docs-v1.0-brightgreen.svg?style=flat)](https://hasura.io/docs)
[![CircleCI](https://circleci.com/gh/hasura/graphql-engine.svg?style=shield)](https://circleci.com/gh/hasura/graphql-engine)


Expand All @@ -12,7 +12,7 @@ Hasura GraphQL Engine is a blazing-fast GraphQL server that gives you **instant,

Hasura helps you build GraphQL apps backed by Postgres or incrementally move to GraphQL for existing applications using Postgres.

Read more at [hasura.io](https://hasura.io) and the [docs](https://docs.hasura.io).
Read more at [hasura.io](https://hasura.io) and the [docs](https://hasura.io/docs).

------------------

Expand All @@ -36,7 +36,7 @@ Read more at [hasura.io](https://hasura.io) and the [docs](https://docs.hasura.i
* **Admin UI & Migrations**: Admin UI & Rails-inspired schema migrations
* **Postgres** ❤️: Supports Postgres types (PostGIS/geo-location, etc.), turns views to *graphs*, trigger stored functions or procedures with mutations

Read more at [hasura.io](https://hasura.io) and the [docs](https://docs.hasura.io).
Read more at [hasura.io](https://hasura.io) and the [docs](https://hasura.io/docs).

## Table of contents
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-refresh-toc -->
Expand Down Expand Up @@ -77,21 +77,21 @@ The fastest way to try Hasura out is via Heroku.

3. Make your first GraphQL query

Create a table and instantly run your first query. Follow this [simple guide](https://docs.hasura.io/1.0/graphql/manual/getting-started/first-graphql-query.html).
Create a table and instantly run your first query. Follow this [simple guide](https://hasura.io/docs/1.0/graphql/manual/getting-started/first-graphql-query.html).

### Other one-click deployment options

Check out the instructions for the following one-click deployment options:

| **Infra provider** | **One-click link** | **Additional information** |
|:------------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------------------------------------------------------:|
| DigitalOcean | [![Deploy to DigitalOcean](https://graphql-engine-cdn.hasura.io/img/create_hasura_droplet_200px.png)](https://marketplace.digitalocean.com/apps/hasura?action=deploy&refcode=c4d9092d2c48&utm_source=hasura&utm_campaign=readme) | [docs](https://docs.hasura.io/1.0/graphql/manual/guides/deployment/digital-ocean-one-click.html#hasura-graphql-engine-digitalocean-one-click-app) |
| Azure | [![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3a%2f%2fraw.githubusercontent.com%2fhasura%2fgraphql-engine%2fstable%2finstall-manifests%2fazure-container-with-pg%2fazuredeploy.json) | [docs](https://docs.hasura.io/1.0/graphql/manual/guides/deployment/azure-container-instances-postgres.html) |
| DigitalOcean | [![Deploy to DigitalOcean](https://graphql-engine-cdn.hasura.io/img/create_hasura_droplet_200px.png)](https://marketplace.digitalocean.com/apps/hasura?action=deploy&refcode=c4d9092d2c48&utm_source=hasura&utm_campaign=readme) | [docs](https://hasura.io/docs/1.0/graphql/manual/guides/deployment/digital-ocean-one-click.html#hasura-graphql-engine-digitalocean-one-click-app) |
| Azure | [![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3a%2f%2fraw.githubusercontent.com%2fhasura%2fgraphql-engine%2fmaster%2finstall-manifests%2fazure-container-with-pg%2fazuredeploy.json) | [docs](https://hasura.io/docs/1.0/graphql/manual/guides/deployment/azure-container-instances-postgres.html) |

### Other deployment methods

For Docker-based deployment and advanced configuration options, see [deployment
guides](https://docs.hasura.io/1.0/graphql/manual/getting-started/index.html) or
guides](https://hasura.io/docs/1.0/graphql/manual/getting-started/index.html) or
[install manifests](install-manifests).

## Architecture
Expand Down Expand Up @@ -122,7 +122,7 @@ processing - [read more](event-triggers.md).

### Derived data or data transformations

Transform data in Postgres or run business logic on it to derive another dataset that can be queried using GraphQL Engine - [read more](https://docs.hasura.io/1.0/graphql/manual/queries/derived-data.html).
Transform data in Postgres or run business logic on it to derive another dataset that can be queried using GraphQL Engine - [read more](https://hasura.io/docs/1.0/graphql/manual/queries/derived-data.html).

## Demos

Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
const (
StrTelemetryNotice = `Help us improve Hasura! The cli collects anonymized usage stats which
allow us to keep improving Hasura at warp speed. To opt-out or read more,
visit https://docs.hasura.io/1.0/graphql/manual/guides/telemetry.html
visit https://hasura.io/docs/1.0/graphql/manual/guides/telemetry.html
`
)

Expand Down
2 changes: 1 addition & 1 deletion cli/commands/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewInitCmd(ec *cli.ExecutionContext) *cobra.Command {
# Create a directory with endpoint and admin secret configured:
hasura init <my-project> --endpoint https://my-graphql-engine.com --admin-secret adminsecretkey
# See https://docs.hasura.io/1.0/graphql/manual/migrations/index.html for more details`,
# See https://hasura.io/docs/1.0/graphql/manual/migrations/index.html for more details`,
SilenceUsage: true,
Args: cobra.MaximumNArgs(1),
PreRunE: func(cmd *cobra.Command, args []string) error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ You can also configure the server in JWKS mode and set `HASURA_GRAPHQL_JWT_SECRE
{ "type": "RS256", "jwk_url": "hostname:port/jwks" }
```

More information in the [Hasura documentation](https://docs.hasura.io/1.0/graphql/manual/auth/authentication/jwt.html).
More information in the [Hasura documentation](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/jwt.html).

## Usage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Further reading: [Firebase SDK for Cloud Functions](https://firebase.google.com/

Set `--auth-hook` or `HASURA_GRAPHQL_AUTH_HOOK` to the endpoint obtained above.

[GraphQL engine server flags reference](https://docs.hasura.io/1.0/graphql/manual/deployment/graphql-engine-flags/reference.html) for details.
[GraphQL engine server flags reference](https://hasura.io/docs/1.0/graphql/manual/deployment/graphql-engine-flags/reference.html) for details.

## Create table and set permission

Follow [Common roles and auth examples](https://docs.hasura.io/1.0/graphql/manual/auth/authorization/common-roles-auth-examples.html)
Follow [Common roles and auth examples](https://hasura.io/docs/1.0/graphql/manual/auth/authorization/common-roles-auth-examples.html)
on Hasura doc for details of how to setup permission to a table.

Make sure to change id column of user table to TXT type as uid sent from webhook is firebase User UID format (e.g. 0LnvZc7405TjRTbjURhZYYVXPI52)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ $ now

Once you have deployed this webhook, you can use it along with the GraphQL engine. You have to set the webhook URL as an environment variable in the docker container that runs the GraphQL engine.

*[Read the docs](https://docs.hasura.io/1.0/graphql/manual/auth/authentication/webhook.html).*
*[Read the docs](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/webhook.html).*

### Firebase

Expand Down
2 changes: 1 addition & 1 deletion community/boilerplates/auth-webhooks/passport-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ The client just need to add `Authorization: Bearer <token>` to the request sendi

The endpoint (say `http://localhost:8080/webhook`) can be given as an environment variable `HASURA_GRAPHQL_AUTH_HOOK` to GraphQL Engine.

[Read more about webhook here](https://docs.hasura.io/1.0/graphql/manual/auth/authentication/webhook.html).
[Read more about webhook here](https://hasura.io/docs/1.0/graphql/manual/auth/authentication/webhook.html).
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ HASURA_GRAPHQL_AUTH_WEBHOOK=http://localhost:5000/auth-webhook

All queries will be now validated through the webhook.

> Read more on [authentication and access control](https://docs.hasura.io/1.0/graphql/manual/auth/index.html).
> Read more on [authentication and access control](https://hasura.io/docs/1.0/graphql/manual/auth/index.html).
2 changes: 1 addition & 1 deletion community/boilerplates/event-triggers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Note: *If you want to add support for other platforms, please submit a PR or cre
## Setup Postgres + Hasura GraphQL engine
This boilerplate code assumes that you already have a HGE instance running.

If not you can visit the [docs](https://docs.hasura.io/1.0/graphql/manual/getting-started/index.html) and setup Postgres + HGE.
If not you can visit the [docs](https://hasura.io/docs/1.0/graphql/manual/getting-started/index.html) and setup Postgres + HGE.

## Deploying the boilerplate examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Click on the following button to deploy GraphQL Engine on Heroku with the free P

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Checkout [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment options.
Checkout [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment options.


### Setup `netlify-cli`
Expand Down
2 changes: 1 addition & 1 deletion community/boilerplates/event-triggers/zeit-now/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Click on the following button to deploy GraphQL Engine on Heroku with the free P

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Checkout [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment options.
Checkout [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment options.


### Setup `now`
Expand Down
2 changes: 1 addition & 1 deletion community/boilerplates/remote-schemas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Typical use-cases:

## Docs

[Remote Schema documentation](https://docs.hasura.io/1.0/graphql/manual/remote-schemas/index.html)
[Remote Schema documentation](https://hasura.io/docs/1.0/graphql/manual/remote-schemas/index.html)

## Architecture

Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/gatsby-contentful-auth0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm install
> Note: if you clone this project through the Gatsby CLI, it will install the modules for you.
## Auth0
This application uses Auth0 to manage identity. Refer to the [Auth0 integration guide](https://docs.hasura.io/1.0/graphql/manual/guides/integrations/auth0-jwt.html) for the configuration.
This application uses Auth0 to manage identity. Refer to the [Auth0 integration guide](https://hasura.io/docs/1.0/graphql/manual/guides/integrations/auth0-jwt.html) for the configuration.

### Modify auth config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[![Deploy to heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[![Deploy to heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)

Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/nextjs-postgres-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Boilerplate to get started with Nextjs, Hasura GraphQL engine as CMS and postgre
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/nuxtjs-postgres-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Boilerplate to get started with Quasar Framework, Hasura GraphQL engine as CMS a
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/react-static-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A sample app to get started with [react-static](https://github.com/nozzle/react-
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/realtime-chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ This is the source code for a fully working group chat app that uses subscriptio
- [Fully working app](https://realtime-chat.demo.hasura.app/)
- [Backend](https://realtime-chat.demo.hasura.app/console)

For a complete tutorial about data modelling, [check out this blog](https://blog.hasura.io/building-a-realtime-chat-app-with-graphql-subscriptions-d68cd33e73f).
For a complete tutorial about data modelling, [check out this blog](https://hasura.io/docs/building-a-realtime-chat-app-with-graphql-subscriptions-d68cd33e73f).

2 changes: 1 addition & 1 deletion community/sample-apps/realtime-chat/src/components/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class Chat extends React.Component {
Source
</a>
&nbsp; | &nbsp;
<a href="https://blog.hasura.io/building-a-realtime-chat-app-with-graphql-subscriptions-d68cd33e73f" target="_blank" rel="noopener noreferrer">
<a href="https://hasura.io/blog/building-a-realtime-chat-app-with-graphql-subscriptions-d68cd33e73f" target="_blank" rel="noopener noreferrer">
Blogpost
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/realtime-location-tracking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ hosted on GitHub pages and the Postgres+GraphQL Engine is running on Postgres.
git clone https://github.com/hasura/graphql-engine
cd graphql-engine/community/sample-apps/realtime-location-tracking
```
- [Install Hasura CLI](https://docs.hasura.io/1.0/graphql/manual/hasura-cli/install-hasura-cli.html)
- [Install Hasura CLI](https://hasura.io/docs/1.0/graphql/manual/hasura-cli/install-hasura-cli.html)
- Goto `hasura/` and edit `config.yaml`:
```yaml
endpoint: https://realtime-backend2.herokuapp.com
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/realtime-poll/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ hosted on GitHub pages and the Postgres+GraphQL Engine is running on Postgres.
git clone https://github.com/hasura/graphql-engine
cd graphql-engine/community/sample-apps/realtime-poll
```
- [Install Hasura CLI](https://docs.hasura.io/1.0/graphql/manual/hasura-cli/install-hasura-cli.html)
- [Install Hasura CLI](https://hasura.io/docs/1.0/graphql/manual/hasura-cli/install-hasura-cli.html)
- Goto `hasura/` and edit `config.yaml`:
```yaml
endpoint: https://random-string-123.herokuapp.com
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/svelte-apollo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A sample [Svelte 3](https://svelte.dev) app to demonstrate usage of GraphQL Quer
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `author` table:
Expand Down
2 changes: 1 addition & 1 deletion community/sample-apps/vuetify-vuex-todo-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A simple Todo PWA (Progressive Web App) inspired by [TodoMVC](http://todomvc.com
[![Deploy to
heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku)

Please checkout our [docs](https://docs.hasura.io/1.0/graphql/manual/deployment/index.html) for other deployment methods
Please checkout our [docs](https://hasura.io/docs/1.0/graphql/manual/deployment/index.html) for other deployment methods

- Get the Heroku app URL (say `my-app.herokuapp.com`)
- Create `todos` table:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The react client is a forked version of [urigo/whatsapp-client-react](https://gi
git clone https://github.com/hasura/graphql-engine
cd graphql-engine/community/sample-apps/whatsapp-clone-typescript-react
```
- [Install Hasura CLI](https://docs.hasura.io/1.0/graphql/manual/hasura-cli/install-hasura-cli.html)
- [Install Hasura CLI](https://hasura.io/docs/1.0/graphql/manual/hasura-cli/install-hasura-cli.html)
- Apply the migrations:
```bash
cd hasura
Expand Down
Loading

0 comments on commit 865b150

Please sign in to comment.