プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
0

Configure Feed

Select the types of activity you want to include in your feed.

create hasura-rest

Kohei Watanabe (Oct 16, 2021, 2:12 AM +0900) b9f0551c ca63a04f

+75
+1
hasura-rest/.gitignore
··· 1 + /.env
+6
hasura-rest/config.yaml
··· 1 + version: 3 2 + endpoint: http://localhost:8080 3 + metadata_directory: metadata 4 + actions: 5 + kind: synchronous 6 + handler_webhook_baseurl: http://localhost:3000
+34
hasura-rest/docker-compose.yml
··· 1 + version: "3" 2 + services: 3 + db: 4 + image: postgres:13.4 5 + environment: 6 + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} 7 + volumes: 8 + - db_data:/var/lib/postgresql/data 9 + hasura: 10 + image: hasura/graphql-engine:v2.0.9.cli-migrations-v3 11 + depends_on: [db] 12 + environment: 13 + HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres 14 + HASURA_GRAPHQL_ENABLE_CONSOLE: "true" 15 + HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anonymous 16 + HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET} 17 + HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET} 18 + volumes: 19 + - ./migrations:/hasura-migrations 20 + - ./metadata:/hasura-metadata 21 + ports: 22 + - "8080:8080" 23 + postgrest: 24 + image: postgrest/postgrest:v8.0.0 25 + depends_on: [db] 26 + environment: 27 + PGRST_DB_URI: postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres 28 + PGRST_DB_SCHEMA: public 29 + PGRST_DB_ANON_ROLE: anonymous 30 + PGRST_JWT_SECRET: ${JWT_SECRET} 31 + ports: 32 + - "3000:3000" 33 + volumes: 34 + db_data:
hasura-rest/metadata/actions.graphql

This is a binary file and will not be displayed.

+6
hasura-rest/metadata/actions.yaml
··· 1 + actions: [] 2 + custom_types: 3 + enums: [] 4 + input_objects: [] 5 + objects: [] 6 + scalars: []
+1
hasura-rest/metadata/allow_list.yaml
··· 1 + []
+1
hasura-rest/metadata/cron_triggers.yaml
··· 1 + []
+16
hasura-rest/metadata/databases/databases.yaml
··· 1 + - name: default 2 + kind: postgres 3 + configuration: 4 + connection_info: 5 + database_url: 6 + from_env: HASURA_GRAPHQL_DATABASE_URL 7 + tables: 8 + - table: 9 + schema: public 10 + name: users 11 + insert_permissions: 12 + - role: anonymous 13 + permission: 14 + check: {} 15 + columns: 16 + - name
+1
hasura-rest/metadata/query_collections.yaml
··· 1 + []
+1
hasura-rest/metadata/remote_schemas.yaml
··· 1 + []
+1
hasura-rest/metadata/version.yaml
··· 1 + version: 3
+7
hasura-rest/migrations/default/1634309496485_init/up.sql
··· 1 + CREATE ROLE anonymous; 2 + ALTER ROLE anonymous SET statement_timeout = '1s'; 3 + CREATE TABLE users ( 4 + id UUID PRIMARY KEY DEFAULT gen_random_uuid(), 5 + name TEXT 6 + ); 7 + GRANT INSERT (name) ON users TO anonymous;