Categorygithub.com/Gratheon/swarm-api
modulepackage
0.0.0-20241117171517-a8125568d869
Repository: https://github.com/gratheon/swarm-api.git
Documentation: pkg.go.dev

# README

gratheon / swarm-api

Main monolith service to manage beehive data.

Architecture

flowchart LR
    web-app("<a href='https://github.com/Gratheon/web-app'>web-app</a>") --> graphql-router
    web-app --"subscribe to events"--> event-stream-filter("<a href='https://github.com/Gratheon/event-stream-filter'>event-stream-filter</a>") --> redis
    
    graphql-router --> swarm-api("<a href='https://github.com/Gratheon/swarm-api'>swarm-api</a>") --> mysql[(mysql)]
    graphql-router --> swarm-api --> redis[("<a href='https://github.com/Gratheon/redis'>redis pub-sub</a>")]
    
    graphql-router --> graphql-schema-registry

Database migrations

We use goose to manage database migrations. To

just migrate-db-dev

Development

Based on gqlgen.

cp config/config.example.json config/config.dev.json
just start

To re-generate graphql -> go resolvers, run:

just gen

Building

just build

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author

# Structs

No description provided by the author