customer-os-analytics-api

command module
v0.0.0-...-21f8c24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

Openline Logo

customerOS analytics API

GraphQL APIs to browse customer analytics data

contributions welcome license stars twitter slack

Built with ❤︎ by the Openline community!

🤝 Dependencies

  1. gorm - ORM library

    go get -u gorm.io/gorm
    
  2. gqlgen - Type-safe GraphQL for Go

    Generate models from schema:

    go generate ./...
    
  3. gin - Web framework for Go

    go get -u github.com/gin-gonic/gin
    

🚀 Quick start

  1. Add any missing module requirements necessary to build the current module’s packages and dependencies, and remove requirements on modules that don’t provide any relevant packages.

    go mod tidy
    
  2. Generate graphql models

    go generate ./...
    
  3. Set environment variables for DB connection:

    1. DB_HOST
    2. DB_PORT
    3. DB_NAME
    4. DB_USER
    5. DB_PWD
  4. Start the graphql server

    go run server.go
    

💪 Contributions

We ❤️ contributions! If you'd like to help out, check out our contributors guide.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
graph

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL