api

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: BSD-2-Clause Imports: 0 Imported by: 0

README

Diskr - API

This is a monorepo containing all the services that makes the Diskr API.

Documentation

Getting started

In order to start the application you'll need a Kubernetes cluster (for Windows & Mac users just enable kubernetes in docker desktop, for linux users try Minikube). Once you Kubernetes cluster is started, install the Skaffold command line.

Now you can start the required services by running kubectl apply -f k8s. You'll need to add the following to your /etc/hosts to have access to everything :

...
127.0.0.1 nats.cluster.local
127.0.0.1 maesh.cluster.local
127.0.0.1 jaeger.cluster.local
127.0.0.1 traefik.cluster.local
127.0.0.1 grafana.cluster.local
127.0.0.1 prometheus.cluster.local
127.0.0.1 playground.cluster.local

The next step is to create a secret file in k8s/secrets.yaml that will contains your Spotify ID/Secret :

apiVersion: v1
kind: Secret
metadata:
  name: spotify
  namespace: spotify
type: Opaque
data:
  id: Y2hhbmdlbWU= # You should change this with your base64 encrypted spotify application ID
  secret: Y2hhbmdlbWU= # You should change this with your base64 encrypted spotify application secret

Then you can run skaffold dev to start all the services required to start Diskr on your computer.

Services

Traefik is your edge router, it listen on the port 80 to proxy all requests to the other services based on the Ingress resources in your cluster.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
server command
grpc command
rest command
server command

Jump to

Keyboard shortcuts

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