eiko

command module
v0.0.0-...-3de62b2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: GPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

eiko

maintenance CircleCI Go Report Card Codacy Badge codecov Docker Pulls Docker Stars discord tipeee Godoc

eiko web app

Installation

Open in Cloud Shell

You need to have a services account to access the google Datastore

Services account

export ACCOUNT_NAME=
export PROJECT_ID=
export CREDENTIALS=CREDENTIALS.json
gcloud iam service-accounts create $ACCOUNT_NAME
gcloud projects add-iam-policy-binding $PROJECT_ID --member "serviceAccount:$ACCOUNT_NAME@$PROJECT_ID.iam.gserviceaccount.com" --role "roles/owner"
gcloud iam service-accounts keys create $CREDENTIALS --iam-account $ACCOUNT_NAME@$PROJECT_ID.iam.gserviceaccount.com

Compilation and local building

git clone https://github.com/eiko-team/eiko.git  $GOPATH/src/github.com/eiko-team/eiko
cd $GOPATH/src/github.com/eiko-team/eiko
go get ./...
$EDITOR .env
make up
Display test coverage
make cover
$BROWSER test.html
Self hosted doc in html
For the Golang Documentation
godoc -http ":8080"
$BROWSER http://127.0.0.1:8080/pkg/github.com/eiko-team/eiko/
For the API Documentation
docker run \
  -p 8080:8080 \
  -e SWAGGER_JSON=/foo/swagger.yml \
  -v $HOME/go/src/github.com/eiko-team/eiko:/foo \
  swaggerapi/swagger-ui
$BROWSER http://127.0.0.1:8080

Docker compose

.env file content:

PROJECT_ID=
CREDENTIALS=CREDENTIALS.json
SALT=
SEARCH_APP_ID=
SEARCH_API_KEY=

Where:

  • PROJECT_ID: the GCP(Google Cloud Platform) Project id
  • CREDENTIALS: the GCP Credential file
  • SALT: Salt to generate password hash
  • SEARCH_APP_ID: Algolia application ID
  • SEARCH_API_KEY: Algolia API Key
  eiko:
    image: eikoapp/eiko:latest-prod
    restart: always
    environment:
      - 'PROJECT_ID=${PROJECT_ID}'
      - 'SEARCH_API_KEY=${SEARCH_API_KEY}'
      - 'SEARCH_APP_ID=${SEARCH_APP_ID}'
      - 'PORT=80'
      - 'STATIC_PWD=/srv'
      - 'GOOGLE_APPLICATION_CREDENTIALS=/srv/${CREDENTIALS}'
      - 'GRPC_GO_LOG_SEVERITY_LEVEL=INFO' # google datastore debug
      - 'SALT=${SALT}
    volumes:
      - './CREDENTIALS.json:/srv/CREDENTIALS.json'
      - '/etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt'

minimified version

Build
make mini
Use in docker compose
  eiko:
    ...
    environment:
      - 'FILE_TYPE=minimified'

Requirements

Build the local developement server
Build minimified version

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
log
Package log implements a simple logging package using JSON format.
Package log implements a simple logging package using JSON format.

Jump to

Keyboard shortcuts

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