A repository for learning domain-driven design and golang development.
- spec :
api/openapi.yaml
- build openapi.html by redoc-cli :
bash api/build_html.sh
# 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
- create private key :
openssl genrsa 1024 > private-key.pem
- create public key :
openssl rsa -in private-key.pem -pubout -out public-key.pem
- launch api :
bin/dataapi
- specified .env path :
DOTENV_PATH=/path/to/.env bin/dataapi
- specified .env path :
- test api :
DOTENV_PATH=/path/to/.env go test -v -count=1 github.com/shuufujita/data-api/...