Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

UniGroupCA/sandwich

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sandwich

This repo is the entrypoint for the sandwich local setup. The files in this repo allow developers to quickly and easily stand up the all sandwich services, databases, and UIs on their local machines.

Getting Started

Make sure you have all the prerequisites installed before running these commands.

git clone [email protected]:QDivision/sandwich.git
cd sandwich
chip sync
chip install
chip start
chip logs

Prerequisites

Install the following tools if you do not already have them:

NOTE: If you use fish, install sdkman and nvm using bash because Chip will run stuff in bash.

  • Docker for Mac
  • brew:
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • maven:
    brew install maven
    
  • yarn:
    brew install yarn
    
  • sdkman:
    curl -s "https://get.sdkman.io" | bash
    # or
    curl -s "https://get.sdkman.io" | zsh
    
  • nvm:
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
    # or
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | zsh
    
  • chip:
    yarn global add @qdivision/chip
    

Services

These repos contain all the code for the sandwich services and UI:

DB Queries

You can query the sandwich DBs using pgcli with the following commands:

# sandwich-api database:
PGPASSWORD=sandwichadmin pgcli --user sandwichadmin --host localhost --dbname sandwichdb --port 5000

# ingredient-api database:
PGPASSWORD=ingredientadmin pgcli --user ingredientadmin --host localhost --dbname ingredientdb --port 5001

# emoji-api database:
PGPASSWORD=emojiadmin pgcli --user emojiadmin --host localhost --dbname emojidb --port 5002

RabbitMQ Dashboard

You can view the RabbitMQ management dashboard at http://localhost:15002. Login using the following credentials:

Username: wabbit
Password: wabbit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published