{"id":45035,"date":"2024-06-28T10:28:37","date_gmt":"2024-06-28T10:28:37","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=45035"},"modified":"2026-02-18T12:11:12","modified_gmt":"2026-02-18T12:11:12","slug":"hasura-graphql-engine","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine","title":{"rendered":"Introduction of Hasura GraphQL Engin\u0435"},"content":{"rendered":"<h2 class=\"ack-h2\">Introduction of Hasura GraphQL Engine<\/h2>\n<p>The Hasura GraphQL engine is an open-source tool that provides an instant and real-time GraphQL API on top of your existing <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/database\/postgresql-hosting\" target=\"_blank\" rel=\"noopener\">PostgreSQL databases<\/a>. It simplifies the process of building GraphQL APIs by automating much of the work typically involved.<\/p>\n<p>Hasura is particularly useful for building GraphQL applications backed by PostgreSQL and for gradually migrating existing projects to use GraphQL.<\/p>\n<p>In this tutorial, we&#8217;ll explore two examples of installing the Hasura GraphQL engine on the AccuWeb.Cloud platform.<\/p>\n<p><strong><a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-01.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45039 size-full\" title=\"Hasura GraphQL Engine\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-01.png\" alt=\"Hasura GraphQL Engine\" width=\"638\" height=\"477\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-01.png 638w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-01-300x224.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-01-600x450.png 600w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/a><\/strong><\/p>\n<h2 class=\"ack-h2\">Steps to Install Hasura GraphQL Engine On AccuWeb.Cloud.<\/h2>\n<h3 class=\"ack-h3\"><a class=\"ack-link-color\" href=\"#Automatic-Deployment\">Automatic Deployment with Local PostgreSQL Database<\/a><\/h3>\n<p>This approach involves setting up Hasura with a PostgreSQL database hosted locally within the same environment. It is a streamlined process where both Hasura and the PostgreSQL database are deployed together and simplifying configuration and management.<\/p>\n<h3 class=\"ack-h3\"><a class=\"ack-link-color\" href=\"#Manual-Deployment\">Manual Deployment with external PostgreSQL Database<\/a><\/h3>\n<p id=\"Automatic-Deployment\">This method involves manually setting up Hasura to connect with an externally hosted PostgreSQL database. It provides more flexibility and is useful when you want to integrate Hasura with an existing PostgreSQL database located outside or inside the AccuWeb.Cloud environment<strong>.<\/strong><\/p>\n<h2 class=\"ack-h2\">Method 1. Automatic Deployment with Local PostgreSQL Database on AccuWeb.Cloud<\/h2>\n<p>Deploying the Hasura GraphQL engine with a local PostgreSQL database on AccuWeb.Cloud is a straightforward process. Follow these steps to get your environment up and running in no time:<\/p>\n<p><strong>Step 1.<\/strong> First, log in to your AccuWeb.Cloud account. Once logged in and locate the Marketplace option at the top left corner of the dashboard and click on it.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-02.jpg\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45046 size-full\" title=\"Marketplace\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-02.jpg\" alt=\"Marketplace\" width=\"1092\" height=\"524\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-02.jpg 1092w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-02-300x144.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-02-1024x491.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-02-768x369.jpg 768w\" sizes=\"(max-width: 1092px) 100vw, 1092px\" \/><\/a><\/p>\n<p><strong>Step 2.<\/strong> In the Marketplace, search for the Docker engine Ce package. Select this package and initiate its installation process.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-03.jpg\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45047 size-full\" title=\" Docker engine Ce package\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-03.jpg\" alt=\" Docker engine Ce package\" width=\"1297\" height=\"610\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-03.jpg 1297w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-03-300x141.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-03-1024x482.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-03-768x361.jpg 768w\" sizes=\"(max-width: 1297px) 100vw, 1297px\" \/><\/a><\/p>\n<p><strong>Step 3.<\/strong>To automatically create a Hasura GraphQL engine and PostgreSQL database within the same container, follow these steps:<\/p>\n<ul>\n<li>Choose the Deploy containers from compose.yml option.<\/li>\n<li>Provide the default configuration from the <a class=\"ack-link-color\" href=\"https:\/\/github.com\/hasura\/graphql-engine\/tree\/master\/install-manifests\/docker-compose\" target=\"_blank\" rel=\"noopener\">Hasura on Docker repository.<\/a><\/li>\n<li>You can find this configuration file at:<\/li>\n<li style=\"list-style: none;\"><a class=\"ack-link-color\" href=\"https:\/\/raw.githubusercontent.com\/hasura\/graphql-engine\/master\/install-manifests\/docker-compose\/docker-compose.yaml\" target=\"_blank\" rel=\"noopener\">https:\/\/raw.githubusercontent.com\/hasura\/graphql-engine\/master\/install-manifests\/docker-compose\/docker-compose.yaml<\/a><\/li>\n<li>Next and configure the remaining settings:<\/li>\n<li>enter the desired environment.<\/li>\n<li>Give your deployment a meaningful name.<\/li>\n<li>Region (if available): Choose the region where you want to deploy your services.<\/li>\n<\/ul>\n<p>Once you have configured these fields according to your neds, click Install.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-04.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45048 size-full\" title=\"Configure Field\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-04.jpg\" alt=\"Configure Field\" width=\"1289\" height=\"609\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-04.jpg 1289w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-04-300x142.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-04-1024x484.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-04-768x363.jpg 768w\" sizes=\"(max-width: 1289px) 100vw, 1289px\" \/><\/a><\/p>\n<p><strong>Step 4.<\/strong> After a successful installation, you can access the Hasura console by <strong>http:\/\/{envDomain}:8080\/<\/strong> console to verify that everything is working correctly. The console provides a user friendly interface for managing your database and API.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-05.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45050 size-full\" title=\"Access Hasura Console\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-05.jpg\" alt=\"Access Hasura Console\" width=\"1166\" height=\"637\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-05.jpg 1166w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-05-300x164.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-05-1024x559.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Hasura-GraphQL-Engin\u0435-05-768x420.jpg 768w\" sizes=\"(max-width: 1166px) 100vw, 1166px\" \/><\/a><\/p>\n<p>You successfully deployed the Hasura GraphQL engine with a local PostgreSQL database on AccuWeb.Cloud.<\/p>\n<p id=\"Manual-Deployment\">Now you can start adding data to your database via the Data tab and experimenting with GraphQL queries to se your setup in action.<\/p>\n<h2 class=\"ack-h2\">Method 2. Manual Deployment with external PostgreSQL Database<\/h2>\n<p>If you already have a PostgreSQL database, you can connect it to the Hasura GraphQL engine with a few manual steps. Here&#8217;s how to do it:<\/p>\n<p><strong>Step 1.<\/strong> First, create a clean standalone Docker engine Ce via the AccuWeb.Cloud platform Marketplace.<\/p>\n<p>Log in to your AccuWeb.Cloud dashboard and click on the Marketplace option at the top left corner. Find the Docker engine Ce package and initiate its installation.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Docker-Engine-CE.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45043 size-full\" title=\"Docker Engine CE\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Docker-Engine-CE.jpg\" alt=\"Docker Engine CE\" width=\"1293\" height=\"609\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Docker-Engine-CE.jpg 1293w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Docker-Engine-CE-300x141.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Docker-Engine-CE-1024x482.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Docker-Engine-CE-768x362.jpg 768w\" sizes=\"(max-width: 1293px) 100vw, 1293px\" \/><\/a><\/p>\n<p>Now, Select <strong>\u201cCreate a clean standalone Docker engine CE\u201d,<\/strong> enter the environment name, Display Name, and select Region. Once done, click on <strong>Install.<\/strong><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Standalone-Docker-Engine-CE.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45042 size-full\" title=\"Create Standalone Docker Engine CE\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Standalone-Docker-Engine-CE.png\" alt=\"Create Standalone Docker Engine CE\" width=\"1288\" height=\"612\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Standalone-Docker-Engine-CE.png 1288w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Standalone-Docker-Engine-CE-300x143.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Standalone-Docker-Engine-CE-1024x487.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Standalone-Docker-Engine-CE-768x365.png 768w\" sizes=\"(max-width: 1288px) 100vw, 1288px\" \/><\/a><\/p>\n<p><strong>Step 2.<\/strong> After the Docker engine is set up and connect to the container via Web SSH.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Web-SSH-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45053 size-full\" title=\"Web SSH\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Web-SSH-4.png\" alt=\"Web SSH\" width=\"1185\" height=\"358\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Web-SSH-4.png 1185w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Web-SSH-4-300x91.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Web-SSH-4-1024x309.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Web-SSH-4-768x232.png 768w\" sizes=\"(max-width: 1185px) 100vw, 1185px\" \/><\/a><\/p>\n<p>Create a shell script file (e.g. and docker run.sh) with the following content:<\/p>\n<div class=\"article-space\"><\/div>\n<div class=\"ack-formula\">docker run -d &#8211;restart=always -p 80:8080 \\<br \/>\n-e HASURA_GRAPHQL_DATABASe_URL=postgres:\/\/{username}:{password}@{host}\/{dbname} \\<br \/>\n-e HASURA_GRAPHQL_eNABLe_CONSOLe=true \\<br \/>\n-e HASURA_GRAPHQL_ADMIN_SeCReT=myadminsecretkey \\<br \/>\nhasura\/graphql-engine:v1.0.0<\/div>\n<div class=\"article-extra-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Docker-run-File-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45054 size-full\" title=\"Create Docker run File\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Docker-run-File-1.jpg\" alt=\"Create Docker run File\" width=\"1181\" height=\"491\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Docker-run-File-1.jpg 1181w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Docker-run-File-1-300x125.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Docker-run-File-1-1024x426.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Create-Docker-run-File-1-768x319.jpg 768w\" sizes=\"(max-width: 1181px) 100vw, 1181px\" \/><\/a><\/p>\n<h3 class=\"ack-h3\">Detailed Command Explanation<\/h3>\n<ul>\n<li><strong>d:<\/strong> Runs services in the background.<\/li>\n<li><strong>restart=always:<\/strong> ensures the daemon restarts automatically after container restarts.<\/li>\n<li><strong>p 80:8080:<\/strong> Redirects port 80 on the Docker engine container to port 8080 on the Hasura image<\/li>\n<li><strong>e:<\/strong> Sets environment variables. ( <a class=\"ack-link-color\" href=\"https:\/\/docs.hasura.io\/1.0\/graphql\/manual\/deployment\/graphql-engine-flags\/reference.html\" target=\"_blank\" rel=\"noopener\">Read this<\/a> for more details)<\/li>\n<\/ul>\n<div class=\"article-space\"><\/div>\n<div class=\"ack-formula\">\n<p><strong>HASURA_GRAPHQL_DATABASe_URL:<\/strong> Connection string to your PostgreSQL database.<\/p>\n<p><strong>HASURA_GRAPHQL_eNABLe_CONSOLe:<\/strong> enables the Hasura console.<\/p>\n<p><strong>HASURA_GRAPHQL_ADMIN_SeCReT:<\/strong> Sets the admin secret key for console access (myadminsecretkey in this example).<\/p>\n<p><strong>hasura\/graphql engine:<\/strong>v1.0.0: Specifies the Docker image for Hasura.<\/p>\n<\/div>\n<div class=\"article-space\"><\/div>\n<p><strong>Step 3.<\/strong> execute the Script to Create Hasura <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/application\/docker-hosting\" target=\"_blank\" rel=\"noopener\">Docker<\/a> Container<\/p>\n<p>Make the script executable and run it to create the Hasura Docker container:<\/p>\n<div class=\"article-space\"><\/div>\n<pre><code class=\"language-javascript\">\r\nchmod +x docker-run.sh\r\n.\/docker-run.sh<\/code><\/pre>\n<div class=\"article-space\"><\/div>\n<p>Verify the Installation: Run docker ps to ensure the Hasura service is up and running.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Run-file-to-Hasura-Docker-.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45055 size-full\" title=\"Run file to Hasura Docker \" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Run-file-to-Hasura-Docker-.jpg\" alt=\"Run file to Hasura Docker \" width=\"1345\" height=\"408\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Run-file-to-Hasura-Docker-.jpg 1345w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Run-file-to-Hasura-Docker--300x91.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Run-file-to-Hasura-Docker--1024x311.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Run-file-to-Hasura-Docker--768x233.jpg 768w\" sizes=\"(max-width: 1345px) 100vw, 1345px\" \/><\/a><\/p>\n<p><strong>Step 4.<\/strong> In the AccuWeb.Cloud dashboard, click Open in Browser next to your environment for an automatic redirect.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Open-in-Browser-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45056 size-full\" title=\"Open in Browser\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Open-in-Browser-3.png\" alt=\"Open in Browser\" width=\"1094\" height=\"363\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Open-in-Browser-3.png 1094w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Open-in-Browser-3-300x100.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Open-in-Browser-3-1024x340.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Open-in-Browser-3-768x255.png 768w\" sizes=\"(max-width: 1094px) 100vw, 1094px\" \/><\/a><\/p>\n<p>Provide the admin secret key (myadminsecretkey) to access the console.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Access-Console.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45052 size-full\" title=\"Access Console\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Access-Console.png\" alt=\"Access Console\" width=\"1016\" height=\"486\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Access-Console.png 1016w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Access-Console-300x144.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Access-Console-768x367.png 768w\" sizes=\"(max-width: 1016px) 100vw, 1016px\" \/><\/a><\/p>\n<p><strong>Step 5.<\/strong> You can now start working with your database using the <strong>GraphQL API.<\/strong> Use the GraphiQL tab in the Hasura console for testing queries.<\/p>\n<p>If there are existing tables you ned to manage with Hasura, go to the <strong>Data tab<\/strong> and enable tracking for the required tables.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Enable-Tracking-to-Require-Node.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45044 size-full\" title=\"Enable Tracking to Require Node\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Enable-Tracking-to-Require-Node.jpg\" alt=\"Enable Tracking to Require Node\" width=\"1129\" height=\"616\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Enable-Tracking-to-Require-Node.jpg 1129w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Enable-Tracking-to-Require-Node-300x164.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Enable-Tracking-to-Require-Node-1024x559.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/Enable-Tracking-to-Require-Node-768x419.jpg 768w\" sizes=\"(max-width: 1129px) 100vw, 1129px\" \/><\/a><\/p>\n<p>Alternatively, use the GraphQL endpoint specified at the top of the page to create POST requests to the database using your preferred tools or scripts.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/GraphQL.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45045 size-full\" title=\"GraphQL\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/GraphQL.jpg\" alt=\"GraphQL\" width=\"1133\" height=\"638\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/GraphQL.jpg 1133w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/GraphQL-300x169.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/GraphQL-1024x577.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/GraphQL-768x432.jpg 768w\" sizes=\"(max-width: 1133px) 100vw, 1133px\" \/><\/a><\/p>\n<p>By following these steps, you can manually deploy the Hasura GraphQL engine to connect with an external <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/database\/postgresql-hosting\" target=\"_blank\" rel=\"noopener\">PostgreSQL database<\/a>, allowing you to leverage the powerful features of Hasura for your GraphQL applications.<\/p>\n<h2 class=\"ack-h2\">Conclusion<\/h2>\n<p>Whether you choose automatic deployment with a local PostgreSQL database or manual deployment with an external PostgreSQL database, Hasura on AccuWeb.Cloud offers a flexible and efficient way to set up a GraphQL API.<\/p>\n<p>The automatic deployment method is quick and easy, suitable for new projects or when you ned a fast setup. The manual deployment method provides greater control and is ideal for integrating with existing <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/database\" target=\"_blank\" rel=\"noopener\">databases.<\/a><\/p>\n<p>Both methods ensure you can leverage Hasura&#8217;s powerful features for managing and querying your data.<\/p>\n<div class=\"cta-btn-top-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"cta-btn-bottom-space\"><\/div>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-45035","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-databases","faq_topics-hasura-graphql-installation","faq_topics-kb","faq_topics-postgre-sql","faq_topics-product-documentation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configure Hasura GraphQL Engine with Different Methods<\/title>\n<meta name=\"description\" content=\"Learn how to deploy the Hasura GraphQL Engine on AccuWeb.Cloud using automatic and manual deployment methods, simplifying configuration.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introduction of Hasura GraphQL Engin\u0435\" \/>\n<meta property=\"og:description\" content=\"Learn how to deploy the Hasura GraphQL Engine on AccuWeb.Cloud using automatic and manual deployment methods, simplifying configuration.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-18T12:11:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"Introduction of Hasura GraphQL Engin\u0435\",\"datePublished\":\"2024-06-28T10:28:37+00:00\",\"dateModified\":\"2026-02-18T12:11:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine\"},\"wordCount\":947,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine\",\"name\":\"Configure Hasura GraphQL Engine with Different Methods\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2024-06-28T10:28:37+00:00\",\"dateModified\":\"2026-02-18T12:11:12+00:00\",\"description\":\"Learn how to deploy the Hasura GraphQL Engine on AccuWeb.Cloud using automatic and manual deployment methods, simplifying configuration.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction of Hasura GraphQL Engin\u0435\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Configure Hasura GraphQL Engine with Different Methods","description":"Learn how to deploy the Hasura GraphQL Engine on AccuWeb.Cloud using automatic and manual deployment methods, simplifying configuration.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine","og_locale":"en_US","og_type":"article","og_title":"Introduction of Hasura GraphQL Engin\u0435","og_description":"Learn how to deploy the Hasura GraphQL Engine on AccuWeb.Cloud using automatic and manual deployment methods, simplifying configuration.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-18T12:11:12+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"Introduction of Hasura GraphQL Engin\u0435","datePublished":"2024-06-28T10:28:37+00:00","dateModified":"2026-02-18T12:11:12+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine"},"wordCount":947,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine","url":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine","name":"Configure Hasura GraphQL Engine with Different Methods","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2024-06-28T10:28:37+00:00","dateModified":"2026-02-18T12:11:12+00:00","description":"Learn how to deploy the Hasura GraphQL Engine on AccuWeb.Cloud using automatic and manual deployment methods, simplifying configuration.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/hasura-graphql-engine#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"Introduction of Hasura GraphQL Engin\u0435"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=45035"}],"version-history":[{"count":17,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45035\/revisions"}],"predecessor-version":[{"id":53090,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45035\/revisions\/53090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=45035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}