Run the following command to install
chip from NPM:
yarn global add @qdivision/chip
You can update your installation by running:
yarn global upgrade @qdivision/chip
Run the following commands to clone the
chip source code and set it up for development it on your machine.
git clone email@example.com:QDivision/chip.git cd chip yarn install yarn build yarn link chip help
Note that you must run
yarn build each time you make a change to the
.ts source files in order for it to be picked up when you run
If you are actively making changes to the source code you can run
yarn buildw to start a process that will automatically detect changes to the source files and recompile the project for you. This is the fastest and easiest way to develop
If chip was initially installed through Yarn and you want to switch to a development installation, you should run the following commands.
cd chip yarn global remove @qdivision/chip yarn unlink yarn link
# Runs at start of every `install` and `run` subprocesssetup: |export sdkman_auto_answer=truesource "$HOME/.sdkman/bin/sdkman-init.sh"export NVM_DIR="$HOME/.nvm"if [ -f "$NVM_DIR/nvm.sh" ]; then. "$NVM_DIR/nvm.sh"else. "/usr/local/opt/nvm/nvm.sh"fi# Runs before `install` subprocesses for servicesinstall: |echo "no" | sdk install java 11.0.2-opennvm install 10.16.3# Runs at start of every service-level `install` and `run` subprocess,# after `setup`setup-service: |echo "no" | sdk use java 11.0.2-opennvm use 10.16.3services:sandwich-ui:repo: 'firstname.lastname@example.org:QDivision/sandwich-ui.git'install: 'yarn install'run: 'yarn start'sandwich-api:repo: 'email@example.com:QDivision/sandwich-api.git'install: 'mvn clean package -D maven.test.skip=true'run: 'mvn spring-boot:run -D spring-boot.run.profiles=local'initializer:repo: 'firstname.lastname@example.org:QDivision/initializer.git'install: 'yarn install'
secretchip.yml file should not be committed to Git! Please be sure to add it to your
services:sandwich-ui:API_KEY: 'foo'sandwich-api:DB_USERNAME: 'qux'DB_PASSWORD: 'baz'initializer:DB_USERNAME: 'qux'DB_PASSWORD: 'baz'