Skip to content

Local Setup: Sandbox Repo

bree edited this page Nov 9, 2020 · 3 revisions
  1. Clone the git-sandbox repo to your local 💻
    1. run git clone https://github.com/itcig/git-sandbox.git
  2. Once the repo has been cloned open the git-sandbox directory and install the npm packages
    1. run yarn
  3. Next install the php dependencies
    1. run composer install
  4. Create a Personal access token for release-it
    1. Click Generate new token in the upper right
    2. Input your Github password if prompted and click Confirm password
    3. In the Note field I recommend a format like : ie. macbook pro: release-it 2020.08.17
    4. Check the box next to repo (this is all the access release it should need)
    5. Scroll to the bottom of the page and click Generate token
    6. Once it's saved you should see the token at the top of the page, copy the token (if you leave the page you will not be able to recover the token and a new one will need to be created)
  5. Then add the following to your ~/.bash_profile export GITHUB_TOKEN="[github personal access token]"
    1. Run vim ~/.bash_profile
    2. Press i to enter Vim's insert mode
    3. Add export GITHUB_TOKEN="[github personal access token]"
    4. Press the escape key and enter :wq to save and exit Vim

DOCKER

       if you want to set this up as a docker environment:
  1. Download Docker here, follow the account and installation directions.
  2. Make sure Docker is running (Mac: small whale icon in toolbar menu), then in the root of the git-sandbox directory, run docker-compose up -d.
  3. Voila, a new container will be created with a generated name (such as git-sandbox_web_1).
  4. If you'd like to stop the container, run docker-compose down.

Clone this wiki locally