GithubHelp home page GithubHelp logo

robertjdominguez / ddn-gopher Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 94 KB

A suite of Go applications using Hasura DDN.

Dockerfile 3.25% Go 66.18% PowerShell 9.74% Shell 7.47% JavaScript 6.71% TypeScript 6.65%

ddn-gopher's Introduction

DDN Gopher

This is a bundled suite of applications which you can run with Docker:

  • An authentication server, using Gin
  • A PostgreSQL database with a users table by default
  • A pre-loaded Hasura DDN project which can be run locally
  • A starter CLI application, using Bubble Tea

Prerequisites

Let's get up and running

Step 1. Clone the repo

Clone the repo:

git clone https://github.com/robertjdominguez/ddn-gopher

Step 2. Create a .env in the root

Move into the repository:

cd ddn-gopher

Then, create a new .env file with a JWT secret key:

touch ./auth-server/.env && echo "JWT_SECRET=somethingSuperSecureGoesHere!" > ./auth-server/.env

Step 3. Update the AuthConfig

Replace the value for the JWT key in hasura/supergraph_globals/auth-config.hml

With whatever value you used above, replace 3q2+7w==iQ== in this โ˜๏ธ file:

kind: AuthConfig
version: v1
definition:
  mode:
    jwt:
      audience: null
      issuer: null
      allowedSkew: null
      claimsConfig:
        namespace:
          claimsFormat: Json
          location: /https:~1~1hasura.io~1jwt~1claims
      tokenLocation:
        type: BearerAuthorization
      key:
        fixed:
          algorithm: HS256
          key:
            value: <your-new-value-here>

Step 3. Start Docker Compose

From the root of the project, run:

 HASURA_DDN_PAT=$(ddn auth print-pat) docker compose up -d

ddn-gopher's People

Contributors

robertjdominguez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.