This starter kit will run the go server at localhost:4300, and the angular dev server at localhost:4200.
The development build runs on Debian GNU/Linux 10 (buster), and contains both Golang and node/npm, so that we can hot reload the server and client when developing.
make dev
The production build runs on Alpine. It is a multistage build that does not have node/npm installed after the client's bundles have been built.
docker build -t angular-gingonic-prod -f Dockerfile .
docker run -p "4300:4300" angular-gingonic-prod
Pre-requisites:
- Have Go and node installed
- Check what your
GOPATH
andGOROOT
env vars are, usinggo env
- Set your path:
PATH=$PATH:$GOPATH/bin:$GOROOT/bin
- Clone this repository into your
GOPATH
- GOPATH
- src
- github.com
- jeantanzj
- angular-gingonic
- Have angular cli installed:
npm install -g @angular/cli
Install dependencies
make client-install
make server-install
Start the angular development server
make client-start
Start the go server
make server-start
make start