Moped Documentation
  • Welcome 👋
  • User Guides
    • Getting started
    • Map a project
  • Product Management
    • User communication
    • User management
    • User analytics
    • Local testing
    • Release process
    • Patch release process
    • MUI X Pro License
    • Integrations
      • Dataset documentation
      • ArcGIS Online
      • eCapris
      • Power BI
    • Features
  • Dev Guides
    • DB Docs & Data dictionary
    • Database backup policy
    • Moped Read Replica
    • How-to's
      • How do I start the Hasura cluster locally?
      • How do I launch the Hasura Console?
      • How do I get a JWT token?
      • How to ping the GraphQL API
      • How to ping the REST API
      • How do I connect a database with Postgres GUIs?
      • How do I connect to the RDS instance?
      • How to load production data into a local instance
      • How do I update seed data?
    • Hasura
      • Hasura Roles
      • Hasura Migrations
        • Getting Started
        • Installing the Hasura CLI
        • Configuration Files
        • Hasura Migration Principles
        • The Migration file format
        • Development
        • Hasura Seed Data
        • Running the Hasura Cluster Locally (video)
        • Create a migration: Exercise 1 (video)
        • Create a migration: Exercise 2 (video)
        • Latest hasura-cluster features
    • User Management
    • Authentication
      • Authentication Architecture
      • DynamoDB & Cognito
      • Secrets Manager & Cognito
      • Hasura & Cognito
      • React & Cognito
      • Flask API & Cognito
      • Single Sign-On with CTM
    • Code organization
    • API
      • Configuration Files
      • Testing
      • User Management API
    • Maps and geospatial data
      • Access tokens and API keys
      • Map libraries
      • Map data
      • Map styles
      • Map layers and basemaps
      • React patterns
      • V1 Archive
        • Map libraries
        • Map data
        • Map custom hooks
        • Map styles
        • Map layers and basemaps
    • UI access control
    • Design system
      • Branding
      • Component styles
      • Text content
    • Activity Log
      • Architecture
      • GitHub Actions and Deployment of Updates
      • Hasura Event Logs and Truncate Cron Job
      • Authentication
  • See also
  • Get Moped support, report a bug, or request an enhancement
  • Data & Technology Services
  • Github repository
Powered by GitBook
On this page
  • Context
  • Video Tutorial
  • What if I still want to access the production or staging console?

Was this helpful?

  1. Dev Guides
  2. How-to's

How do I launch the Hasura Console?

PreviousHow do I start the Hasura cluster locally?NextHow do I get a JWT token?

Last updated 4 years ago

Was this helpful?

Context

The Hasura console should only be run locally. You should already have all the data you need locally, and for the most part you will not need to look into production or staging environments. You will not be applying migrations directly against staging or production.

The production environment should be identical to staging, and your local environment should be branched off of staging (main branch), what this means is that you are running the same structure as is available to staging.

The data will be different, but if you need more data in those columns then maybe it is a seed data situation. You may need to create seed data specifically for local development, and you are encouraged to do so.

Video Tutorial

What if I still want to access the production or staging console?

You can, but you really shouldn't. Using the console opens the door for conflicts between all three environments, you should not be patching things in staging, no manual work or adjustments should ever be made via the console in staging, much less in production. All the work is done by CircleCI or GitHub actions.

What are your options?

  • Use your favorite SQL client.

  • Use Postman (in GraphQL mode) against Staging or Prod.

DANGER ZONE: To connect to the Hasura Console to staging or production, you need to create a file in the ./moped-database/config folder and name it hasura.staging.yaml or hasura.production.yaml (correspondingly), and provide all the details needed for hasura console to connect, including the endpoints and admin secrets:

version: 2
endpoint: <staging_endpoint_here>
metadata_directory: metadata
admin_secret: <staging_admin_secret_here>
actions:
  kind: synchronous
  handler_webhook_baseurl: <staging_endpoint_here_again>

---> ---> Please read the Hasura docs and find out why this is a terrible idea for you to do. --->

Postman and GraphQL: