Skip to content

A repository for learning domain-driven design and golang development.

Notifications You must be signed in to change notification settings

hrsfjt/data-api

Repository files navigation

Data API

A repository for learning domain-driven design and golang development.

Specification

  • spec : api/openapi.yaml
  • build openapi.html by redoc-cli : bash api/build_html.sh

Installation

# Get packages.
go get github.com/shuufujita/data-api/cmd/dataapi

# Install command.
go install github.com/shuufujita/data-api/cmd/dataapi

# Install vendor packages.
cd src/github.com/shuufujita/data-api && dep ensure

Generate RSA Keys

  • create private key : openssl genrsa 1024 > private-key.pem
  • create public key : openssl rsa -in private-key.pem -pubout -out public-key.pem

Usage

  • launch api : bin/dataapi
    • specified .env path : DOTENV_PATH=/path/to/.env bin/dataapi
  • test api : DOTENV_PATH=/path/to/.env go test -v -count=1 github.com/shuufujita/data-api/...

About

A repository for learning domain-driven design and golang development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published