# cartApi **Repository Path**: gomicros/cartApi ## Basic Information - **Project Name**: cartApi - **Description**: Go容器化微服务系统实战 cart购物车模块Api层 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-22 - **Last Updated**: 2021-09-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CartApi Service This is the CartApi service Generated with ``` micro new cartApi --namespace=go.micro --type=api ``` ## Getting Started - [Configuration](#configuration) - [Dependencies](#dependencies) - [Usage](#usage) ## Configuration - FQDN: go.micro.api.cartApi - Type: api - Alias: cartApi ## Dependencies Micro services depend on service discovery. The default is multicast DNS, a zeroconf system. In the event you need a resilient multi-host setup we recommend etcd. ``` # install etcd brew install etcd # run etcd etcd ``` ## Usage A Makefile is included for convenience Build the binary ``` make build ``` Run the service ``` ./cartApi-api ``` Build a docker image ``` make docker ```