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.
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
Install the following tools if you do not already have them:
NOTE: If you use
fish
, installsdkman
andnvm
usingbash
because Chip will run stuff inbash
.
- 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
These repos contain all the code for the sandwich services and UI:
- https://github.com/QDivision/sandwich-ui
- https://github.com/QDivision/emoji-api
- https://github.com/QDivision/ingredient-api
- https://github.com/QDivision/sandwich-api
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
You can view the RabbitMQ management dashboard at http://localhost:15002. Login using the following credentials:
Username: wabbit
Password: wabbit