tmc / d2labs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

d2lab

Getting Started

Pre-requisites

This codebase requires the following tools to be present on your machine.

Running the Project

To get started with this project:

Populate dev-harness/.env.

Run services:

$ make run-services

You should see this in the Tilt UI: tilt-harness

The React Frontend: react-frontend

The Apollo GraphQL Sandbox: apollo-graphql-sandbox

Accessing Services

  • 10350 - The Tilt Harness (with the react-frontend selected).
  • 3000 - React Frontend.
  • 3000 - GraphQL Sandbox.
  • 4000 - GraphQL Gateway.
  • 5432 - PostgreSQL database.
  • 8080 - Go GraphQL backend
  • 6379 - Redis Server.
  • 6380 - RedisInsight web UI.
  • 16686 - Jaeger web UI (distributed trace viewer).

Directory Structure

The project is divided into various directories, each corresponding to a distinct part of the application. Here's a quick breakdown:

  • ./go-graphql-backend: This directory contains a backend service implemented in Go with the help of gqlgen, a Go library for building GraphQL servers. It includes support for subscriptions.

  • ./react-frontend: This is a frontend application built with React and TypeScript. React is a JavaScript library for building user interfaces, and TypeScript is a statically typed superset of JavaScript that adds optional types.

  • ./gateway: This directory contains a sample setup that combines multiple backend services.

  • ./dev-harness: This directory contains examples of docker-compose.yml files showing how to configure Docker Compose to run the various components of this project together.

Each directory contains a README.md file with more detailed information about that part of the project.

Further Reading

About

License:ISC License


Languages

Language:TypeScript 92.4%Language:Go 3.5%Language:Makefile 1.3%Language:JavaScript 0.9%Language:CSS 0.8%Language:Shell 0.5%Language:Dockerfile 0.3%Language:Starlark 0.3%Language:HTML 0.1%Language:Python 0.0%