Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.71 KB

INSTALLATION.md

File metadata and controls

69 lines (43 loc) · 1.71 KB

Requirements

  • Golang >= 1.12
  • MongoDB >= 4.0 as data store.
  • Redis as a cache store.

Application Components:

  • 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

Install Go:

Export Gopath to .bashrc

  • export GOPATH=$HOME/go
  • export PATH=$PATH:$GOPATH/bin
  • export PATH=$PATH:/usr/local/go/bin

Clone the forked Tribe Platform repository

Setup Environmnet variables

  • Use .env.example file to replace the connection strings for MongoDB, Redis e.t.c.

Start the Graph server

  • go mod tidy
  • go run /cmd/graphserver

Access Graphql Playground

Using Docker:

Install Docker CE

Pull and run the Docker Image

  • docker pull tribecommerce/platform
  • docker run -d -p 8080:8080 --name GraphServer tribecommerce/platform

Using docker-compose:

Install docker-compose

Run docker-compose.yml to bring up all the stack of tribe platform

  • cd platform
  • docker-compose up -d

Destroy docker-compose

  • docker-compose down