The following programs need to be installed:
- gcloud
- golang 1.11
- protoc
- https://github.com/google/protobuf/releases
go get -u github.com/golang/protobuf/protoc-gen-gogo get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swaggergo get -u google.golang.org/grpc
- install node 12 LTS: https://nodejs.org/en/
brew install yarnyarn global add gulp-cliyarn global add @vue/cli
Do the following in your .bashprofile or .zshrc file:
- add GOPATH
- recommended ~/Development/go
- add to PATH
./usr/local/mysql/support-files/$GOPATH/bin~/Development/protoc/bin
Setting up for web development:
- run
yarn install- in ./
- in ./admin/app
- in ./subserver/web
go get ./cookapi- if deploying, then copy paste the FIX code in main to the correct folder
go get ./servergo get ./admingo get ./subserverapp build proto- add private folder
- setup mysql servers
- run
sudo mysql_secure_installation - login to mysql with
sudo mysql -uroot - run following in mysql
uninstall plugin validate_password;CREATE USER 'server'@'localhost' IDENTIFIED BY 'gigamunch';GRANT ALL PRIVILEGES ON *.* To 'server'@'localhost';- copy, paste, and run ./misc/setup.sql
- run
To run local development:
app serve (admin | server | sub)
Here are the modules:
- default:
- In the 'server' folder.
- This module serves landing page.
- admin:
- In the 'admin' folder.
- sub:
- In the 'subserver' folder.
- cookapi:
- In the 'cookapi' folder.