- Golang >= 1.12
- MongoDB >= 4.0 as data store.
- Redis as a cache store.
- GraphServer - Contains GraphQL as a backend
- OAuthServer - Complete authentication of application happens here
- MongoDB - Data storage accross the application
- Redis - In-memory cache for the payloads
- wget https://storage.googleapis.com/golang/go1.12.linux-amd64.tar.gz
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf go1.12.linux-amd64.tar.gz
- export GOPATH=$HOME/go
- export PATH=$PATH:$GOPATH/bin
- export PATH=$PATH:/usr/local/go/bin
- Use .env.example file to replace the connection strings for MongoDB, Redis e.t.c.
- go mod tidy
- go run /cmd/graphserver
- Head to http://localhost:8080 in your browser to play with the current setup
- curl -fsSL https://get.docker.com -o get-docker.sh
- sudo sh get-docker.sh
- sudo usermod -aG docker $(whoami)
- docker pull tribecommerce/platform
- docker run -d -p 8080:8080 --name GraphServer tribecommerce/platform
- sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- cd platform
- docker-compose up -d
- docker-compose down